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
719,108
Kathleen
Wilson
672-555-4045
712-555-1756
719,109
Jose
Brown
238-555-3478
264-555-3081
719,110
Hailey
Lee
574-555-7051
800-555-4061
719,111
Keith
Gomez
534-555-7272
848-555-4514
719,112
Pamela
Johnson
313-555-4888
504-555-3627
719,113
Kathleen
Moore
701-555-6032
216-555-2161
719,114
Joshua
Cruz
865-555-4477
456-555-2861
719,115
Samantha
Murray
716-555-1845
382-555-1547