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
6,000,763
Christopher
Davis
278-555-2686
353-555-5277
6,000,764
Timothy
Williams
772-555-3641
864-555-5240
6,000,765
Hailey
Clark
554-555-6780
411-555-3587
6,000,766
Jose
Clark
472-555-8754
438-555-8177
6,000,767
Hailey
Murray
363-555-1243
683-555-4774
6,000,768
Jose
Davis
651-555-3606
705-555-5801
6,000,769
Hailey
Davis
710-555-8873
414-555-7530
6,000,770
Abby
Lee
360-555-5222
851-555-8474