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
720,689
Emily
Rose
447-555-3575
827-555-5083
720,690
Douglas
Ortiz
706-555-2432
535-555-3843
720,691
Timothy
Baker
226-555-6015
540-555-2514
720,692
Douglas
Johnson
766-555-5877
850-555-6152
720,693
Debra
Ortiz
423-555-3015
818-555-6171
720,694
Hailey
Graham
228-555-2558
382-555-6520
720,695
Gerald
Cruz
542-555-1327
353-555-3050
720,696
Jack
Lee
652-555-2581
537-555-1353