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
64,031
Joshua
Bailey
843-555-7878
463-555-4812
64,032
Sarah
Rose
407-555-6004
208-555-4560
64,033
Christopher
Cruz
307-555-5140
727-555-7551
64,034
Douglas
Black
533-555-1828
625-555-2264
64,035
Debra
Jones
308-555-1104
682-555-4024
64,036
Debra
Bailey
661-555-6157
833-555-3038
64,037
Abby
Davis
330-555-8428
867-555-3111
64,038
Michael
Lee
758-555-7132
432-555-2676