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
2,512
Maria
Brown
206-555-1883
235-555-5783
2,513
Matthew
Nelson
240-555-8788
374-555-5146
2,514
Abner
Jones
433-555-8264
866-555-4636
2,515
Gerald
Baker
623-555-3255
644-555-7738
2,516
Kathleen
Black
361-555-3888
243-555-5743
2,517
Hailey
Baker
355-555-1212
700-555-5556
2,518
Hailey
Clark
712-555-4051
317-555-4425
2,519
Jack
Davis
707-555-2143
222-555-5512