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,186
Jacob
Hall
501-555-5228
381-555-4755
4,187
Abner
Wilson
631-555-8606
372-555-6102
4,188
Sarah
Donahue
273-555-6510
621-555-7368
4,189
Maria
Johnson
452-555-5010
726-555-7487
4,190
Michael
Murray
480-555-6777
760-555-1424
4,191
Samuel
Smiith
830-555-2742
855-555-4074
4,192
Jacob
Moore
656-555-5530
417-555-2363
4,193
Virginia
Hall
508-555-8511
546-555-7427