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
2,778,190
Timothy
Murray
800-555-6071
552-555-6377
2,778,191
Keith
Ortiz
531-555-7732
530-555-8483
2,778,192
Larry
Cruz
534-555-5806
383-555-1803
2,778,193
Matthew
Smiith
554-555-6728
360-555-4585
2,778,194
Matthew
Jones
888-555-6406
770-555-7565
2,778,195
Joshua
Lee
651-555-4532
581-555-3806
2,778,196
Hailey
Brown
518-555-5513
824-555-1071
2,778,197
Sandra
Gomez
763-555-5653
812-555-3076