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
718,426
Kathleen
Murray
220-555-7000
675-555-3433
718,427
Maria
Rose
341-555-1164
288-555-6306
718,428
Jose
Brown
283-555-1177
562-555-8437
718,429
Linda
Graham
527-555-3724
435-555-1440
718,430
Douglas
Williams
863-555-4538
805-555-5814
718,431
Hailey
Donahue
476-555-7373
856-555-8882
718,432
Linda
Bailey
753-555-1645
841-555-6757
718,433
Timothy
Murray
227-555-2483
357-555-4228