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
838
Pamela
Wilson
806-555-8505
858-555-7801
839
Timothy
Nelson
210-555-3070
707-555-8217
840
Michael
Black
812-555-8505
743-555-7723
841
Jose
Wilson
882-555-8203
731-555-6345
842
Timothy
Baker
326-555-1634
731-555-3503
843
Linda
Johnson
651-555-3464
276-555-4882
844
Sarah
Williams
871-555-1083
260-555-8042
845
Maria
Murray
811-555-3283
430-555-2027