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
706,181
Sandra
Gonzalez
825-555-6463
303-555-2241
706,182
Sarah
Gomez
381-555-6358
708-555-3322
706,183
Pamela
Fisher
558-555-3405
237-555-1787
706,184
Sarah
Gonzalez
816-555-7083
331-555-5264
706,185
Douglas
Johnson
322-555-6252
431-555-5877
706,186
Maria
Baker
761-555-8151
735-555-4041
706,187
Emily
Ortiz
671-555-2043
381-555-1760
706,188
Samantha
Jones
665-555-5163
538-555-1603