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
227,386
Hailey
Graham
422-555-1535
306-555-6543
227,387
Jose
Ortiz
727-555-1443
767-555-2304
227,388
Gerald
Gonzalez
504-555-2268
735-555-8176
227,389
Linda
Johnson
685-555-8867
212-555-1185
227,390
Gerald
Brown
782-555-6120
681-555-7328
227,391
Pamela
Moore
807-555-7221
577-555-5220
227,392
Kathleen
Davis
332-555-7547
665-555-2321
227,393
Hailey
Davis
378-555-3726
553-555-1755