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,814,334
Jack
Hall
382-555-6342
688-555-1664
3,814,335
Christopher
Lee
740-555-6650
630-555-6532
3,814,336
Maria
Williams
644-555-4578
364-555-3626
3,814,337
Willie
Ortiz
402-555-1123
502-555-7264
3,814,338
Joshua
Hall
880-555-6187
530-555-1502
3,814,339
Matthew
Brown
273-555-4072
506-555-7812
3,814,340
Samantha
Baker
875-555-1405
410-555-5745
3,814,341
Jack
Graham
814-555-1222
623-555-1530