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
45,013
Virginia
Lee
350-555-6728
868-555-2386
45,014
Linda
Clark
765-555-8812
544-555-5757
45,015
Maria
Clark
384-555-3624
630-555-6358
45,016
Joshua
Clark
203-555-5561
810-555-2728
45,017
Pamela
Bailey
676-555-4515
610-555-8546
45,018
Jacob
Williams
552-555-6674
242-555-2614
45,019
Emily
Allen
861-555-4480
613-555-2845
45,020
Larry
Gomez
380-555-7174
475-555-7145