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
656,426
Christopher
Donahue
308-555-2007
606-555-4186
656,427
Matthew
Murray
437-555-5816
227-555-7751
656,428
Hailey
Ortiz
587-555-5743
218-555-6853
656,429
Abby
Jones
726-555-4644
668-555-3738
656,430
Nicholas
Gomez
746-555-4660
785-555-4556
656,431
Christopher
Rose
715-555-7245
541-555-4235
656,432
Gerald
Gomez
604-555-1387
706-555-1105
656,433
Abner
Baker
638-555-7174
505-555-5648