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
18,911
Pamela
Lee
704-555-7447
262-555-3673
18,912
Maria
Bailey
840-555-1012
402-555-5736
18,913
Jose
Allen
345-555-6617
578-555-8634
18,914
Michael
Fisher
734-555-3326
871-555-5771
18,915
Larry
Brown
733-555-3758
462-555-3787
18,916
Pamela
Graham
342-555-3587
462-555-3277
18,917
Joshua
Rose
472-555-4713
685-555-4400
18,918
Jose
Donahue
777-555-6624
888-555-4272