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,790,712
Jacob
Bailey
307-555-4484
838-555-2043
3,790,713
Sandra
Graham
281-555-2531
266-555-3262
3,790,714
Samuel
Donahue
415-555-3741
558-555-3327
3,790,715
Matthew
Davis
660-555-5162
645-555-1278
3,790,716
Maria
Smiith
234-555-4301
210-555-2284
3,790,717
Willie
Black
805-555-6240
486-555-8200
3,790,718
Larry
Johnson
873-555-5783
820-555-7778
3,790,719
Christopher
Moore
482-555-2566
241-555-7077