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
7,945,084
Sarah
Nelson
558-555-5286
720-555-1578
7,945,085
Samuel
Smiith
517-555-7066
227-555-5866
7,945,086
Michael
Graham
388-555-1546
823-555-4025
7,945,087
Jack
Williams
247-555-6577
637-555-8365
7,945,088
Keith
Wilson
783-555-1784
411-555-5810
7,945,089
Brianna
Ortiz
471-555-7054
815-555-1000
7,945,090
Jacob
Jones
652-555-4846
308-555-5472
7,945,091
Samuel
Black
421-555-7303
628-555-2277