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,101
Nicholas
Jones
545-555-5468
474-555-7083
3,102
Keith
Cruz
451-555-4678
252-555-5244
3,103
Linda
Smiith
632-555-1712
577-555-8027
3,104
Jose
Black
331-555-3475
748-555-3072
3,105
Douglas
Gonzalez
805-555-5752
583-555-7654
3,106
Pamela
Black
725-555-3785
453-555-1230
3,107
Willie
Hall
366-555-2356
811-555-2725
3,108
Gerald
Williams
761-555-6652
756-555-2726