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
5,515,180
Kathleen
Baker
473-555-8326
635-555-1186
5,515,181
Keith
Ortiz
878-555-1633
888-555-3524
5,515,182
Abner
Davis
578-555-1146
713-555-2142
5,515,183
Douglas
Smiith
851-555-8243
407-555-7511
5,515,184
Larry
Clark
732-555-5375
601-555-6572
5,515,185
Michael
Ortiz
236-555-8468
420-555-8282
5,515,186
Emily
Graham
527-555-6065
760-555-6136
5,515,187
Timothy
Baker
342-555-8263
530-555-5584