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
192,170
Larry
Brown
633-555-5720
656-555-6848
192,171
Maria
Hall
478-555-1704
817-555-8616
192,172
Hailey
Fisher
317-555-3353
527-555-4533
192,173
Kathleen
Baker
617-555-6354
834-555-3863
192,174
Timothy
Williams
844-555-1236
527-555-7370
192,175
Abby
Murray
803-555-6311
831-555-2471
192,176
Pamela
Rose
555-555-3643
258-555-1526
192,177
Douglas
Brown
884-555-4644
335-555-6732