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
654,442
Timothy
Bailey
747-555-4336
743-555-3048
654,443
Debra
Cruz
426-555-7373
312-555-6710
654,444
Pamela
Smiith
743-555-8037
448-555-5666
654,445
Nicholas
Murray
541-555-4174
578-555-8036
654,446
Brianna
Nelson
276-555-4683
861-555-1742
654,447
Jack
Rose
313-555-2434
313-555-6011
654,448
Michael
Smiith
822-555-1800
345-555-5417
654,449
Sandra
Hall
534-555-3563
862-555-4160