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,778,810
Hailey
Donahue
866-555-1631
225-555-4482
2,778,811
Christopher
Hall
740-555-6655
767-555-6076
2,778,812
Debra
Hall
611-555-1682
227-555-1562
2,778,813
Abby
Jones
322-555-8438
682-555-6640
2,778,814
Keith
Cruz
302-555-1838
615-555-5124
2,778,815
Timothy
Jones
361-555-4107
847-555-7431
2,778,816
Willie
Rose
412-555-7138
475-555-6147
2,778,817
Jose
Gomez
370-555-5080
358-555-1387