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
44,734
Christopher
Davis
314-555-8834
858-555-6421
44,735
Willie
Baker
352-555-7753
674-555-1643
44,736
Nicholas
Hall
383-555-7262
841-555-2058
44,737
Kathleen
Williams
827-555-2776
710-555-8437
44,738
Jack
Hall
521-555-5604
536-555-3348
44,739
Christopher
Rose
612-555-4677
814-555-6680
44,740
Hailey
Hall
680-555-5642
323-555-8587
44,741
Nicholas
Black
334-555-8101
887-555-8141