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,999,616
Larry
Graham
364-555-8050
712-555-2208
5,999,617
Michael
Davis
267-555-8746
262-555-5801
5,999,618
Abner
Wilson
443-555-8712
751-555-5805
5,999,619
Kathleen
Clark
230-555-7657
826-555-8143
5,999,620
Emily
Davis
826-555-8784
227-555-1148
5,999,621
Gerald
Fisher
446-555-5754
320-555-3625
5,999,622
Brianna
Baker
220-555-2135
538-555-1561
5,999,623
Emily
Clark
308-555-7702
827-555-1160