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,689
Keith
Moore
860-555-7647
323-555-6547
38,690
Jack
Davis
641-555-3713
236-555-6800
38,691
Pamela
Graham
655-555-3366
624-555-5348
38,692
Debra
Johnson
485-555-8512
388-555-6670
38,693
Abner
Smiith
360-555-7556
687-555-5783
38,694
Douglas
Jones
254-555-5077
628-555-1123
38,695
Sarah
Lee
446-555-4085
560-555-3402
38,696
Sandra
Moore
742-555-5724
556-555-2558