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
113,177
Sarah
Clark
537-555-5810
607-555-8035
113,178
Samuel
Davis
544-555-7516
618-555-6570
113,179
Willie
Moore
407-555-8805
863-555-6648
113,180
Debra
Graham
820-555-8575
644-555-4201
113,181
Samuel
Bailey
775-555-4238
818-555-7582
113,182
Sarah
Nelson
553-555-5628
524-555-6005
113,183
Brianna
Smiith
740-555-3353
444-555-1174
113,184
Emily
Allen
207-555-8458
573-555-6371