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
6,511
Douglas
Moore
251-555-5460
536-555-2604
6,512
Kathleen
Davis
671-555-5166
644-555-7423
6,513
Emily
Murray
422-555-6425
831-555-1555
6,514
Samuel
Bailey
820-555-7725
613-555-1303
6,515
Samuel
Gonzalez
333-555-6346
500-555-1768
6,516
Jose
Cruz
851-555-1465
333-555-4718
6,517
Kathleen
Murray
308-555-5814
251-555-8241
6,518
Hailey
Graham
716-555-2785
512-555-7036