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
38,782
Hailey
Lee
325-555-4186
318-555-2762
38,783
Larry
Black
562-555-2348
674-555-8676
38,784
Emily
Rose
202-555-5121
807-555-6178
38,785
Michael
Baker
526-555-6023
724-555-7188
38,786
Douglas
Cruz
860-555-8130
728-555-2531
38,787
Debra
Jones
870-555-2345
482-555-5782
38,788
Abner
Moore
220-555-8406
372-555-2626
38,789
Jack
Davis
333-555-1256
424-555-2406