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
655,527
Michael
Ortiz
873-555-8523
817-555-4434
655,528
Joshua
Wilson
525-555-4112
643-555-8650
655,529
Jack
Graham
425-555-7711
201-555-3520
655,530
Virginia
Bailey
463-555-8162
665-555-7002
655,531
Michael
Smiith
267-555-6560
583-555-5148
655,532
Maria
Graham
485-555-7376
875-555-7326
655,533
Hailey
Hall
761-555-2345
230-555-8840
655,534
Keith
Baker
337-555-7415
473-555-2773