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
38,596
Jose
Allen
243-555-4003
361-555-2278
38,597
Maria
Bailey
766-555-3645
856-555-6086
38,598
Pamela
Allen
885-555-8723
402-555-1526
38,599
Emily
Jones
621-555-3443
352-555-5143
38,600
Emily
Bailey
776-555-7224
370-555-7703
38,601
Nicholas
Donahue
715-555-2032
703-555-4137
38,602
Jose
Davis
515-555-3752
574-555-7555
38,603
Brianna
Cruz
752-555-1715
684-555-5601