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
28,707
Joshua
Allen
256-555-6473
227-555-7324
28,708
Jose
Allen
704-555-8006
714-555-7851
28,709
Keith
Clark
884-555-8210
481-555-3636
28,710
Abby
Bailey
472-555-8820
305-555-1378
28,711
Willie
Allen
307-555-1643
481-555-4018
28,712
Hailey
Ortiz
427-555-7156
776-555-5850
28,713
Jose
Cruz
480-555-2024
206-555-4435
28,714
Maria
Brown
656-555-6456
702-555-5715