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
3,811,699
Willie
Davis
578-555-6236
467-555-2777
3,811,700
Matthew
Ortiz
422-555-3243
241-555-7514
3,811,701
Abby
Lee
453-555-7321
505-555-1164
3,811,702
Jack
Cruz
541-555-2631
713-555-7046
3,811,703
Kathleen
Clark
234-555-1376
523-555-1683
3,811,704
Matthew
Smiith
620-555-1341
774-555-7023
3,811,705
Matthew
Allen
506-555-6862
842-555-3082
3,811,706
Abby
Moore
360-555-5810
868-555-2654