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
22,011
Jacob
Smiith
221-555-5563
751-555-3083
22,012
Hailey
Moore
240-555-5042
816-555-2258
22,013
Sandra
Williams
384-555-5037
665-555-2837
22,014
Michael
Allen
806-555-3300
706-555-4438
22,015
Jack
Lee
417-555-4571
621-555-4718
22,016
Sandra
Bailey
338-555-6258
636-555-3357
22,017
Kathleen
Brown
616-555-1724
350-555-1102
22,018
Keith
Williams
248-555-7724
867-555-3615