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
9,084
Keith
Ortiz
456-555-1757
317-555-7462
9,085
Willie
Allen
864-555-5476
671-555-3273
9,086
Joshua
Donahue
415-555-5547
247-555-2643
9,087
Maria
Graham
386-555-5107
848-555-1412
9,088
Maria
Smiith
725-555-5310
847-555-5865
9,089
Virginia
Wilson
333-555-8020
783-555-5372
9,090
Jose
Moore
237-555-2102
747-555-4384
9,091
Pamela
Davis
521-555-4005
857-555-3143