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
12,773
Kathleen
Williams
511-555-4537
645-555-4200
12,774
Joshua
Graham
618-555-1738
828-555-3441
12,775
Samuel
Gonzalez
461-555-5422
674-555-1780
12,776
Virginia
Bailey
801-555-3857
683-555-6560
12,777
Michael
Ortiz
243-555-5418
633-555-8765
12,778
Sarah
Jones
361-555-8843
568-555-1665
12,779
Nicholas
Baker
245-555-7037
241-555-2636
12,780
Douglas
Fisher
860-555-4333
387-555-8520