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,200,193
Gerald
Murray
272-555-5077
225-555-5520
3,200,194
Sandra
Johnson
603-555-2776
853-555-4328
3,200,195
Matthew
Clark
278-555-2021
226-555-3734
3,200,196
Samantha
Murray
454-555-5288
320-555-4501
3,200,197
Matthew
Donahue
754-555-2051
877-555-1618
3,200,198
Sarah
Brown
882-555-2055
628-555-8785
3,200,199
Christopher
Cruz
227-555-8125
647-555-3173
3,200,200
Maria
Fisher
452-555-4611
567-555-2272