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
44,858
Abby
Clark
744-555-6781
848-555-3754
44,859
Christopher
Davis
728-555-5326
426-555-7120
44,860
Sandra
Bailey
521-555-8883
876-555-4344
44,861
Samuel
Baker
556-555-8586
840-555-3563
44,862
Sarah
Gomez
536-555-7332
658-555-3724
44,863
Christopher
Johnson
765-555-1723
488-555-8674
44,864
Abner
Lee
845-555-4128
634-555-2728
44,865
Emily
Hall
206-555-4114
728-555-5068