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,008
Sandra
Lee
836-555-1408
787-555-1783
3,009
Douglas
Gomez
650-555-1886
204-555-1344
3,010
Abby
Williams
310-555-7265
673-555-7501
3,011
Nicholas
Gonzalez
871-555-5064
433-555-3602
3,012
Abner
Black
325-555-1000
628-555-4005
3,013
Keith
Graham
250-555-7708
833-555-2081
3,014
Debra
Johnson
635-555-4443
383-555-2203
3,015
Brianna
Murray
223-555-4887
375-555-8153