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
4,806
Michael
Murray
573-555-7685
485-555-7045
4,807
Jose
Murray
651-555-5235
484-555-2436
4,808
Abner
Davis
746-555-5346
482-555-3828
4,809
Brianna
Brown
228-555-6148
743-555-5106
4,810
Timothy
Cruz
803-555-5622
587-555-6825
4,811
Jacob
Gonzalez
675-555-4581
468-555-3236
4,812
Abner
Davis
861-555-1266
527-555-3137
4,813
Samuel
Davis
607-555-4007
500-555-3537