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,829,156
Maria
Fisher
213-555-3251
721-555-6204
1,829,157
Gerald
Black
206-555-2054
454-555-4458
1,829,158
Emily
Gonzalez
431-555-6534
534-555-1842
1,829,159
Brianna
Johnson
368-555-6261
773-555-3554
1,829,160
Linda
Ortiz
804-555-4573
340-555-7703
1,829,161
Jack
Johnson
357-555-1665
637-555-5850
1,829,162
Nicholas
Williams
350-555-6415
563-555-7151
1,829,163
Douglas
Lee
483-555-2813
746-555-4478