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
29,079
Gerald
Graham
516-555-5025
608-555-7404
29,080
Jack
Moore
775-555-5332
826-555-4531
29,081
Maria
Graham
204-555-2627
561-555-8031
29,082
Kathleen
Donahue
258-555-7817
831-555-8118
29,083
Maria
Clark
847-555-3217
455-555-1272
29,084
Timothy
Jones
477-555-6471
338-555-7630
29,085
Keith
Graham
781-555-8348
566-555-4200
29,086
Sandra
Cruz
550-555-3836
456-555-2061