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
5,566,764
Linda
Clark
578-555-8157
566-555-2755
5,566,765
Emily
Fisher
488-555-2541
552-555-2554
5,566,766
Debra
Bailey
435-555-3332
273-555-3808
5,566,767
Abner
Ortiz
340-555-8260
708-555-2284
5,566,768
Linda
Black
878-555-1380
362-555-7320
5,566,769
Keith
Lee
267-555-5438
605-555-2488
5,566,770
Samuel
Donahue
787-555-8411
708-555-1177
5,566,771
Joshua
Wilson
686-555-2146
883-555-6738