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
13,486
Keith
Moore
740-555-5746
701-555-5123
13,487
Christopher
Murray
745-555-8567
260-555-4525
13,488
Hailey
Rose
668-555-8474
524-555-5840
13,489
Virginia
Baker
635-555-2108
230-555-5546
13,490
Jacob
Gomez
641-555-2263
332-555-4101
13,491
Maria
Graham
603-555-4246
261-555-3117
13,492
Gerald
Moore
527-555-1627
623-555-6121
13,493
Sandra
Wilson
665-555-7123
757-555-5728