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,790,247
Kathleen
Hall
335-555-2305
471-555-8067
3,790,248
Matthew
Rose
827-555-6627
812-555-8446
3,790,249
Jose
Allen
872-555-7557
482-555-2617
3,790,250
Jacob
Baker
573-555-4322
682-555-6410
3,790,251
Sandra
Brown
468-555-3387
572-555-2814
3,790,252
Samuel
Moore
851-555-3358
238-555-5835
3,790,253
Jose
Jones
202-555-5783
200-555-5081
3,790,254
Debra
Hall
283-555-2106
826-555-7855