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
68,030
Keith
Moore
524-555-2205
577-555-3123
68,031
Pamela
Jones
468-555-5143
260-555-2184
68,032
Douglas
Bailey
685-555-7600
607-555-3265
68,033
Matthew
Black
872-555-6462
603-555-1437
68,034
Samuel
Clark
580-555-2824
214-555-6655
68,035
Maria
Gomez
533-555-2110
353-555-1182
68,036
Larry
Johnson
653-555-6042
450-555-8102
68,037
Linda
Donahue
284-555-1450
526-555-1743