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
706,646
Joshua
Clark
858-555-5841
872-555-6370
706,647
Kathleen
Black
774-555-3010
247-555-1016
706,648
Abby
Gonzalez
671-555-2332
670-555-6043
706,649
Douglas
Smiith
220-555-3378
807-555-8715
706,650
Linda
Smiith
315-555-5303
360-555-1234
706,651
Abby
Fisher
507-555-8460
846-555-7567
706,652
Brianna
Johnson
231-555-4436
715-555-5358
706,653
Larry
Murray
407-555-4162
260-555-5484