This is a rewrite of the AJAX data table example from Wicket. We demonstrate here how we can deviate from the default settings by using a BindingInterceptor in the page. Also we show how the order of the generated table columns and visibility of columns can be manipulated by the @ColumnOrder annotation. The removeFrom utility method is also demonstrated for how to remove elements in the parent model via adding a button to the table. The multiselection behavior is fully driven by the model class.

This is a demo of the DataTable (DataView wrapper). Provided features:

  • Easy ordering and selection of columns
  • Takes care of sorting headers automatically
  • Takes care of page navigator automatically
  • Takes care of adding class="odd" and class="even" to table rows
  • Adds a navigator message (see BindingInterceptor in page which enables it)
Contacts
Id First Name Last Name Home Phone Cell Phone Remove
3,438,552
Jacob
Gomez
358-555-5121
601-555-1014
3,438,553
Maria
Brown
836-555-1870
257-555-1758
3,438,554
Hailey
Baker
527-555-5132
275-555-5415
3,438,555
Abby
Williams
681-555-4344
244-555-8241
3,438,556
Abner
Baker
688-555-7772
224-555-6100
3,438,557
Maria
Ortiz
532-555-4870
801-555-2176
3,438,558
Samantha
Jones
578-555-5574
466-555-8667
3,438,559
Matthew
Moore
876-555-3031
622-555-3613