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
9,642
Timothy
Davis
871-555-7868
511-555-7523
9,643
Debra
Brown
827-555-3735
287-555-2781
9,644
Michael
Johnson
216-555-2007
646-555-6166
9,645
Douglas
Black
604-555-2485
614-555-1003
9,646
Virginia
Donahue
281-555-4305
400-555-5113
9,647
Larry
Johnson
814-555-2846
212-555-5851
9,648
Joshua
Donahue
537-555-2186
221-555-3311
9,649
Sandra
Clark
664-555-7206
514-555-6283