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
3,411
Michael
Jones
261-555-1103
387-555-4878
3,412
Maria
Allen
687-555-5643
642-555-3026
3,413
Pamela
Hall
557-555-3531
787-555-6675
3,414
Jose
Hall
276-555-7515
372-555-7273
3,415
Emily
Davis
601-555-7817
401-555-4337
3,416
Matthew
Wilson
467-555-7117
455-555-2675
3,417
Gerald
Brown
485-555-1207
781-555-4571
3,418
Christopher
Clark
342-555-5872
568-555-6777