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
5,556,007
Willie
Ortiz
745-555-8071
564-555-4045
5,556,008
Larry
Graham
725-555-6876
881-555-5620
5,556,009
Debra
Black
504-555-1051
400-555-5102
5,556,010
Debra
Ortiz
767-555-4384
632-555-6671
5,556,011
Christopher
Hall
274-555-4686
545-555-1352
5,556,012
Jack
Smiith
385-555-1885
473-555-7400
5,556,013
Timothy
Graham
783-555-2201
327-555-3186
5,556,014
Debra
Black
622-555-5133
800-555-7553