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
167,587
Brianna
Brown
380-555-8402
836-555-3748
167,588
Christopher
Nelson
231-555-5240
231-555-6668
167,589
Christopher
Donahue
712-555-8602
712-555-6466
167,590
Jose
Black
781-555-4520
203-555-6301
167,591
Pamela
Johnson
250-555-1625
653-555-3110
167,592
Abby
Williams
537-555-2250
471-555-4542
167,593
Pamela
Baker
481-555-1135
415-555-4121
167,594
Kathleen
Clark
211-555-8763
254-555-7464