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,787,147
Gerald
Bailey
282-555-6236
633-555-1447
3,787,148
Sandra
Allen
715-555-1767
261-555-4403
3,787,149
Virginia
Wilson
732-555-4512
452-555-5444
3,787,150
Jack
Graham
464-555-7512
204-555-4317
3,787,151
Willie
Black
684-555-2031
420-555-8281
3,787,152
Samantha
Wilson
511-555-1856
887-555-4232
3,787,153
Hailey
Graham
473-555-1571
236-555-1424
3,787,154
Michael
Baker
222-555-8546
504-555-2572