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
3,194
Linda
Jones
331-555-5536
823-555-6826
3,195
Maria
Baker
867-555-8200
233-555-7180
3,196
Christopher
Black
255-555-5884
641-555-2543
3,197
Emily
Donahue
231-555-6526
334-555-1602
3,198
Willie
Clark
408-555-6233
430-555-4727
3,199
Jacob
Baker
372-555-8116
807-555-8884
3,200
Sarah
Davis
217-555-4858
534-555-3830
3,201
Hailey
Lee
407-555-3221
555-555-4370