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
68,914
Samantha
Jones
460-555-1625
465-555-2830
68,915
Douglas
Clark
722-555-1025
467-555-2457
68,916
Brianna
Graham
558-555-4481
802-555-6356
68,917
Pamela
Donahue
245-555-8475
257-555-2761
68,918
Sandra
Moore
472-555-2273
285-555-1768
68,919
Gerald
Gomez
825-555-4800
377-555-7114
68,920
Virginia
Baker
761-555-3886
761-555-4776
68,921
Jack
Ortiz
388-555-1433
604-555-7188