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
5,178
Keith
Allen
305-555-3436
856-555-7736
5,179
Virginia
Moore
306-555-3876
700-555-3512
5,180
Keith
Lee
276-555-8022
300-555-4726
5,181
Sandra
Bailey
872-555-5075
807-555-5710
5,182
Pamela
Bailey
380-555-2271
770-555-7763
5,183
Maria
Ortiz
457-555-1100
716-555-6435
5,184
Jose
Williams
832-555-6463
873-555-1001
5,185
Keith
Gomez
538-555-7072
227-555-1751