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,118,043
Larry
Allen
603-555-5066
665-555-2137
3,118,044
Christopher
Black
525-555-7550
251-555-8548
3,118,045
Timothy
Ortiz
767-555-3834
631-555-2665
3,118,046
Kathleen
Cruz
754-555-4217
262-555-4608
3,118,047
Joshua
Murray
657-555-7616
257-555-2025
3,118,048
Kathleen
Rose
306-555-8225
705-555-5427
3,118,049
Virginia
Bailey
435-555-3275
765-555-7702
3,118,050
Virginia
Fisher
647-555-7008
424-555-2738