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
748,651
Kathleen
Hall
206-555-8084
481-555-7678
748,652
Samantha
Wilson
704-555-5253
373-555-2267
748,653
Michael
Murray
456-555-7333
363-555-7727
748,654
Kathleen
Fisher
488-555-8026
248-555-8547
748,655
Kathleen
Fisher
556-555-7526
671-555-8555
748,656
Emily
Gomez
688-555-4035
234-555-7246
748,657
Pamela
Allen
740-555-2358
346-555-7328
748,658
Kathleen
Bailey
345-555-8305
846-555-3724