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
655,155
Keith
Gonzalez
444-555-2374
586-555-1248
655,156
Linda
Donahue
231-555-7232
536-555-4538
655,157
Abby
Hall
610-555-5840
211-555-1341
655,158
Douglas
Clark
671-555-4533
768-555-8385
655,159
Matthew
Wilson
210-555-2630
807-555-3655
655,160
Linda
Clark
872-555-4730
724-555-3214
655,161
Abner
Brown
846-555-1112
822-555-5801
655,162
Brianna
Rose
548-555-3335
487-555-5371