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
Keith
Fisher
858-555-6332
757-555-8650
5,117
Samuel
Baker
562-555-5711
887-555-7701
5,118
Abby
Moore
304-555-7628
758-555-2834
5,119
Samantha
Graham
334-555-2775
761-555-2420
5,120
Jack
Moore
248-555-3084
612-555-6167
5,121
Nicholas
Johnson
703-555-4726
621-555-8650
5,122
Douglas
Black
314-555-6760
517-555-3347
5,123
Jose
Moore
485-555-1746
665-555-3132