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
750,604
Keith
Wilson
881-555-7014
256-555-4066
750,605
Jose
Fisher
624-555-3821
834-555-6274
750,606
Maria
Hall
625-555-1806
431-555-8526
750,607
Kathleen
Murray
201-555-1705
200-555-1637
750,608
Michael
Baker
586-555-3050
712-555-4768
750,609
Hailey
Wilson
226-555-3861
537-555-5251
750,610
Sandra
Allen
407-555-5600
303-555-8201
750,611
Hailey
Allen
244-555-6084
671-555-8786