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
45,106
Jose
Allen
610-555-2175
681-555-5674
45,107
Kathleen
Cruz
726-555-5861
381-555-8225
45,108
Virginia
Hall
650-555-6018
647-555-3071
45,109
Samantha
Donahue
710-555-5087
471-555-4423
45,110
Willie
Graham
380-555-1862
856-555-6087
45,111
Jose
Gomez
760-555-6640
512-555-4780
45,112
Willie
Gonzalez
483-555-6411
747-555-1378
45,113
Larry
Black
603-555-6761
576-555-5343