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
707,700
Pamela
Donahue
240-555-2235
670-555-7161
707,701
Hailey
Baker
763-555-1242
844-555-1244
707,702
Linda
Moore
410-555-5817
218-555-3330
707,703
Christopher
Baker
781-555-2743
864-555-4376
707,704
Christopher
Bailey
507-555-5885
765-555-2443
707,705
Samuel
Graham
560-555-8855
456-555-1770
707,706
Debra
Johnson
404-555-1340
535-555-2846
707,707
Kathleen
Davis
308-555-2312
655-555-2165