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
226,425
Timothy
Donahue
327-555-8848
331-555-5726
226,426
Linda
Johnson
638-555-2404
417-555-4216
226,427
Pamela
Murray
403-555-6352
203-555-5181
226,428
Hailey
Allen
244-555-7133
355-555-2244
226,429
Michael
Brown
214-555-2664
228-555-5808
226,430
Debra
Lee
527-555-4213
573-555-5067
226,431
Timothy
Murray
500-555-7327
548-555-3862
226,432
Emily
Cruz
733-555-8638
252-555-6400