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
1,471,943
Brianna
Gomez
675-555-8162
878-555-2172
1,471,944
Brianna
Murray
788-555-1462
575-555-7668
1,471,945
Joshua
Cruz
256-555-7206
253-555-1467
1,471,946
Jacob
Black
276-555-8173
718-555-4220
1,471,947
Jack
Graham
234-555-2667
214-555-3142
1,471,948
Timothy
Smiith
214-555-4410
780-555-6835
1,471,949
Keith
Hall
605-555-3678
534-555-8738
1,471,950
Virginia
Cruz
283-555-2773
358-555-2878