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
2,067,112
Pamela
Graham
537-555-1082
414-555-8363
2,067,113
Larry
Black
621-555-4807
525-555-2688
2,067,114
Joshua
Wilson
208-555-8376
671-555-7305
2,067,115
Abner
Nelson
875-555-4615
302-555-3702
2,067,116
Kathleen
Allen
845-555-2720
546-555-8765
2,067,117
Linda
Bailey
572-555-7576
752-555-6370
2,067,118
Abner
Jones
537-555-3653
886-555-1450
2,067,119
Larry
Ortiz
807-555-4255
526-555-4667