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
44,207
Jack
Williams
356-555-6225
850-555-1820
44,208
Matthew
Bailey
385-555-5238
558-555-7437
44,209
Jose
Hall
422-555-1841
887-555-6408
44,210
Samuel
Bailey
868-555-7522
842-555-4274
44,211
Michael
Fisher
710-555-5354
350-555-7800
44,212
Christopher
Fisher
735-555-6170
526-555-5361
44,213
Brianna
Wilson
487-555-8688
225-555-2502
44,214
Maria
Donahue
662-555-3664
381-555-1243