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,782,096
Pamela
Allen
738-555-7562
846-555-7314
2,782,097
Kathleen
Ortiz
447-555-5613
564-555-2324
2,782,098
Michael
Johnson
511-555-6526
836-555-5321
2,782,099
Michael
Hall
667-555-1017
320-555-6620
2,782,100
Emily
Lee
582-555-6216
402-555-1720
2,782,101
Larry
Bailey
761-555-3803
350-555-6073
2,782,102
Samuel
Davis
523-555-7240
837-555-7773
2,782,103
Keith
Gomez
207-555-8540
664-555-3262