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
43,463
Gerald
Baker
753-555-5602
530-555-7662
43,464
Hailey
Clark
656-555-6783
404-555-3856
43,465
Joshua
Johnson
244-555-1623
653-555-7438
43,466
Jack
Johnson
544-555-7621
507-555-1073
43,467
Pamela
Hall
718-555-3702
227-555-7714
43,468
Sarah
Brown
816-555-2103
660-555-7773
43,469
Jack
Graham
684-555-8846
363-555-3248
43,470
Larry
Williams
853-555-6444
366-555-5655