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,805,809
Linda
Black
807-555-3236
310-555-1324
3,805,810
Douglas
Brown
532-555-2726
474-555-5521
3,805,811
Christopher
Hall
576-555-2152
354-555-3874
3,805,812
Jack
Donahue
226-555-5170
743-555-3334
3,805,813
Emily
Baker
476-555-3636
461-555-5407
3,805,814
Jacob
Fisher
225-555-1171
582-555-7702
3,805,815
Debra
Bailey
521-555-4846
870-555-3184
3,805,816
Matthew
Brown
637-555-3667
551-555-3854