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,517,009
Samantha
Graham
843-555-4704
244-555-3780
5,517,010
Samuel
Graham
301-555-2035
212-555-1631
5,517,011
Sandra
Nelson
222-555-1824
812-555-2888
5,517,012
Gerald
Baker
424-555-4751
715-555-2510
5,517,013
Sandra
Nelson
733-555-8127
670-555-2800
5,517,014
Douglas
Baker
563-555-2067
226-555-4553
5,517,015
Matthew
Bailey
722-555-4834
621-555-7536
5,517,016
Keith
Baker
457-555-7636
515-555-4080