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
721,929
Joshua
Wilson
654-555-2082
657-555-8305
721,930
Michael
Donahue
387-555-8260
383-555-5122
721,931
Keith
Williams
728-555-3887
230-555-3651
721,932
Willie
Allen
360-555-7146
763-555-1784
721,933
Matthew
Graham
678-555-8132
337-555-2012
721,934
Jack
Davis
863-555-1436
320-555-2852
721,935
Debra
Clark
623-555-7521
200-555-6547
721,936
Timothy
Baker
307-555-6115
302-555-2148