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
30,567
Samantha
Hall
330-555-4087
728-555-7526
30,568
Larry
Lee
753-555-2034
450-555-3456
30,569
Matthew
Allen
876-555-8840
574-555-8164
30,570
Kathleen
Graham
668-555-1172
707-555-1885
30,571
Joshua
Rose
251-555-2371
812-555-4026
30,572
Linda
Nelson
831-555-1020
222-555-3100
30,573
Brianna
Brown
335-555-4168
814-555-6021
30,574
Michael
Davis
722-555-5373
347-555-3356