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
1,824,723
Timothy
Donahue
412-555-1703
767-555-7455
1,824,724
Brianna
Donahue
761-555-2653
274-555-2703
1,824,725
Samuel
Hall
223-555-6844
544-555-3380
1,824,726
Emily
Jones
285-555-2016
733-555-4623
1,824,727
Christopher
Lee
408-555-2872
873-555-8066
1,824,728
Nicholas
Wilson
240-555-8716
538-555-8768
1,824,729
Nicholas
Wilson
642-555-3586
560-555-7255
1,824,730
Emily
Moore
347-555-6381
267-555-3535