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
164,766
Abner
Jones
888-555-7651
637-555-6501
164,767
Maria
Brown
537-555-8714
228-555-4267
164,768
Brianna
Williams
415-555-4684
755-555-4455
164,769
Timothy
Murray
740-555-5753
628-555-7243
164,770
Debra
Smiith
753-555-5427
857-555-3174
164,771
Pamela
Johnson
877-555-7784
552-555-1323
164,772
Emily
Fisher
738-555-2758
362-555-7703
164,773
Samantha
Williams
272-555-2274
401-555-2272