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
23,437
Nicholas
Gomez
848-555-5643
200-555-6248
23,438
Jose
Graham
643-555-2113
667-555-1208
23,439
Hailey
Williams
584-555-7071
621-555-1166
23,440
Brianna
Bailey
538-555-8837
305-555-3174
23,441
Douglas
Hall
287-555-8266
555-555-6782
23,442
Kathleen
Rose
488-555-1203
855-555-3543
23,443
Willie
Brown
265-555-7820
861-555-3367
23,444
Pamela
Black
620-555-3333
305-555-4676