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
10,518,642
Christopher
Allen
500-555-8743
856-555-5686
10,518,643
Samantha
Hall
385-555-6810
461-555-2162
10,518,644
Jack
Graham
712-555-6340
204-555-8114
10,518,645
Debra
Allen
301-555-2725
703-555-6344
10,518,646
Joshua
Nelson
481-555-4334
480-555-6015
10,518,647
Hailey
Brown
264-555-3130
437-555-1284
10,518,648
Emily
Gonzalez
405-555-1778
254-555-4317
10,518,649
Keith
Williams
848-555-6155
628-555-8432