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
17,144
Maria
Hall
864-555-8827
733-555-3332
17,145
Samuel
Rose
680-555-1867
430-555-5317
17,146
Keith
Wilson
525-555-6465
363-555-6456
17,147
Sarah
Murray
741-555-7754
361-555-6815
17,148
Jack
Jones
454-555-2457
767-555-1038
17,149
Christopher
Wilson
501-555-3402
652-555-8880
17,150
Pamela
Clark
640-555-4766
380-555-3208
17,151
Samantha
Moore
865-555-4005
671-555-1405