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
157,418
Larry
Brown
482-555-8273
571-555-6870
157,419
Michael
Williams
304-555-6328
704-555-5655
157,420
Keith
Clark
227-555-5783
564-555-4700
157,421
Kathleen
Rose
476-555-2485
560-555-6086
157,422
Jack
Clark
734-555-7730
284-555-8346
157,423
Gerald
Bailey
242-555-6143
643-555-5808
157,424
Brianna
Black
231-555-3852
667-555-1110
157,425
Keith
Bailey
235-555-2431
354-555-4074