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
721,030
Kathleen
Lee
452-555-4311
845-555-8863
721,031
Keith
Johnson
812-555-7760
460-555-3446
721,032
Debra
Hall
888-555-5623
751-555-8716
721,033
Matthew
Moore
504-555-6586
201-555-3668
721,034
Joshua
Hall
582-555-7603
347-555-2061
721,035
Matthew
Black
575-555-1881
845-555-6668
721,036
Abby
Smiith
255-555-6115
410-555-2332
721,037
Sarah
Baker
254-555-8766
477-555-4068