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
5,116
Samuel
Cruz
716-555-4317
817-555-1157
5,117
Sandra
Lee
437-555-8560
584-555-5761
5,118
Nicholas
Gomez
486-555-3305
746-555-7757
5,119
Emily
Moore
570-555-8163
287-555-6662
5,120
Brianna
Johnson
564-555-1867
662-555-2621
5,121
Samantha
Lee
345-555-1332
638-555-2463
5,122
Jose
Fisher
484-555-7358
664-555-5500
5,123
Jose
Clark
836-555-2217
853-555-6060