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
3,538,328
Brianna
Jones
571-555-7110
844-555-2148
3,538,329
Kathleen
Gonzalez
208-555-6301
857-555-2336
3,538,330
Pamela
Baker
878-555-6747
221-555-2071
3,538,331
Virginia
Ortiz
267-555-6520
220-555-1185
3,538,332
Keith
Ortiz
362-555-4468
556-555-8152
3,538,333
Sarah
Johnson
706-555-2840
283-555-7187
3,538,334
Samantha
Donahue
767-555-4144
211-555-5278
3,538,335
Douglas
Donahue
513-555-3410
374-555-1536