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
6,356
Michael
Graham
886-555-2145
582-555-8781
6,357
Samantha
Ortiz
287-555-4785
235-555-6863
6,358
Keith
Donahue
343-555-6437
466-555-8517
6,359
Virginia
Donahue
401-555-6147
756-555-2727
6,360
Douglas
Nelson
735-555-3540
315-555-5033
6,361
Nicholas
Williams
787-555-1146
221-555-5007
6,362
Jack
Smiith
377-555-3706
783-555-7552
6,363
Abby
Graham
838-555-4118
531-555-3677