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,818,054
Michael
Bailey
227-555-7367
682-555-7178
3,818,055
Maria
Davis
862-555-3822
421-555-6240
3,818,056
Pamela
Cruz
800-555-4636
865-555-4280
3,818,057
Hailey
Moore
248-555-5715
583-555-5616
3,818,058
Hailey
Davis
317-555-6617
575-555-8380
3,818,059
Sarah
Johnson
487-555-7666
548-555-3641
3,818,060
Jacob
Bailey
541-555-8841
706-555-2365
3,818,061
Debra
Murray
243-555-6858
634-555-3680