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
21,422
Jose
Murray
486-555-1842
343-555-4817
21,423
Debra
Rose
758-555-3044
664-555-1665
21,424
Samantha
Davis
500-555-7658
471-555-6657
21,425
Maria
Wilson
856-555-3115
714-555-6661
21,426
Hailey
Hall
655-555-5470
372-555-7340
21,427
Matthew
Baker
782-555-7105
280-555-7577
21,428
Jack
Jones
428-555-8578
685-555-7814
21,429
Pamela
Clark
523-555-5547
460-555-8258