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,809,219
Douglas
Smiith
753-555-1163
283-555-5264
3,809,220
Sarah
Clark
633-555-3685
488-555-6463
3,809,221
Sarah
Davis
520-555-8538
813-555-7861
3,809,222
Douglas
Fisher
848-555-7530
760-555-3735
3,809,223
Timothy
Black
861-555-2047
305-555-5377
3,809,224
Linda
Baker
351-555-8754
720-555-4272
3,809,225
Pamela
Wilson
661-555-2636
542-555-5581
3,809,226
Jack
Baker
774-555-4617
883-555-5808