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
3,785,008
Douglas
Allen
832-555-3203
628-555-1305
3,785,009
Joshua
Rose
452-555-2660
851-555-3556
3,785,010
Sandra
Moore
282-555-6557
623-555-7520
3,785,011
Sandra
Davis
485-555-5852
572-555-8632
3,785,012
Gerald
Clark
474-555-3586
852-555-3707
3,785,013
Christopher
Black
752-555-1265
756-555-4426
3,785,014
Gerald
Johnson
756-555-3881
275-555-1846
3,785,015
Michael
Ortiz
261-555-3758
826-555-6076