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
42,750
Sarah
Williams
836-555-1288
384-555-3172
42,751
Maria
Clark
688-555-4568
766-555-4375
42,752
Emily
Black
614-555-1236
332-555-7334
42,753
Emily
Lee
221-555-1302
782-555-3533
42,754
Douglas
Ortiz
617-555-8141
740-555-5421
42,755
Kathleen
Murray
611-555-4057
212-555-1018
42,756
Abby
Cruz
820-555-5706
622-555-3552
42,757
Michael
Allen
607-555-7361
416-555-4672