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
10,519,014
Nicholas
Lee
641-555-2810
235-555-4426
10,519,015
Abner
Hall
778-555-4543
583-555-8681
10,519,016
Michael
Williams
264-555-1214
652-555-6430
10,519,017
Joshua
Fisher
447-555-1511
332-555-7376
10,519,018
Michael
Brown
854-555-2283
773-555-8132
10,519,019
Jacob
Black
736-555-1644
681-555-4608
10,519,020
Jack
Donahue
713-555-4422
312-555-4155
10,519,021
Debra
Gomez
262-555-8283
505-555-8738