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
17,888
Samantha
Hall
311-555-4174
735-555-2663
17,889
Kathleen
Murray
683-555-8788
844-555-5015
17,890
Douglas
Jones
788-555-2563
588-555-2307
17,891
Christopher
Williams
518-555-5427
770-555-6058
17,892
Sandra
Moore
276-555-3383
840-555-8117
17,893
Emily
Johnson
736-555-6564
500-555-5184
17,894
Matthew
Clark
837-555-7368
800-555-3726
17,895
Christopher
Ortiz
834-555-3550
870-555-1106