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
53,352
Debra
Wilson
410-555-3705
385-555-1651
53,353
Samantha
Allen
731-555-4636
576-555-1700
53,354
Abner
Donahue
352-555-4015
313-555-1053
53,355
Hailey
Graham
331-555-1413
824-555-6438
53,356
Douglas
Graham
312-555-1106
721-555-7273
53,357
Jack
Gomez
843-555-8782
526-555-1152
53,358
Nicholas
Johnson
663-555-1085
720-555-5712
53,359
Samuel
Baker
833-555-6860
658-555-5280