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
5,555,945
Matthew
Moore
315-555-4830
736-555-4518
5,555,946
Pamela
Ortiz
214-555-6747
577-555-2148
5,555,947
Nicholas
Smiith
667-555-1386
236-555-2156
5,555,948
Nicholas
Bailey
756-555-6135
543-555-5802
5,555,949
Kathleen
Moore
350-555-1614
762-555-3808
5,555,950
Sarah
Gomez
244-555-7026
485-555-4385
5,555,951
Matthew
Fisher
384-555-7586
438-555-8288
5,555,952
Emily
Williams
830-555-8087
722-555-5720