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
21,949
Pamela
Cruz
848-555-6408
250-555-7626
21,950
Virginia
Graham
566-555-4503
257-555-7554
21,951
Michael
Moore
875-555-5845
805-555-6662
21,952
Gerald
Brown
767-555-4864
846-555-3123
21,953
Sandra
Clark
674-555-5452
387-555-3702
21,954
Hailey
Hall
647-555-8724
567-555-4325
21,955
Sandra
Johnson
202-555-3830
216-555-7420
21,956
Christopher
Rose
610-555-1478
472-555-6613