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
1,471,013
Linda
Lee
870-555-1335
424-555-4348
1,471,014
Jacob
Donahue
485-555-1478
274-555-5187
1,471,015
Christopher
Wilson
200-555-2673
255-555-3774
1,471,016
Joshua
Smiith
527-555-4417
264-555-5145
1,471,017
Jack
Cruz
373-555-8181
480-555-7627
1,471,018
Matthew
Murray
246-555-3587
540-555-6333
1,471,019
Jack
Donahue
678-555-7820
541-555-7815
1,471,020
Matthew
Cruz
404-555-1643
884-555-7472