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,457
Sarah
Davis
512-555-2610
417-555-3203
5,458
Joshua
Brown
583-555-2122
865-555-1351
5,459
Sandra
Johnson
407-555-4711
600-555-2352
5,460
Debra
Wilson
528-555-7016
227-555-2553
5,461
Christopher
Jones
348-555-2103
505-555-7067
5,462
Samuel
Fisher
222-555-4581
201-555-7314
5,463
Abby
Clark
518-555-2186
643-555-3130
5,464
Emily
Gomez
567-555-6470
330-555-1031