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
13,238
Larry
Clark
554-555-4528
868-555-3858
13,239
Jose
Donahue
250-555-1643
677-555-5760
13,240
Michael
Davis
881-555-2861
358-555-2577
13,241
Debra
Bailey
258-555-3315
848-555-3242
13,242
Hailey
Johnson
220-555-4146
756-555-5021
13,243
Abby
Brown
730-555-5227
225-555-3871
13,244
Willie
Davis
888-555-6235
544-555-2750
13,245
Abner
Graham
854-555-4620
735-555-2023