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
7,913,464
Pamela
Hall
800-555-4362
717-555-7521
7,913,465
Samantha
Jones
623-555-8531
833-555-3874
7,913,466
Matthew
Graham
331-555-6084
247-555-1000
7,913,467
Matthew
Moore
487-555-3436
871-555-8107
7,913,468
Sarah
Clark
488-555-1875
217-555-2377
7,913,469
Maria
Wilson
527-555-1865
764-555-7327
7,913,470
Samantha
Brown
443-555-6844
505-555-2656
7,913,471
Jose
Jones
604-555-1450
285-555-1556