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
652
Douglas
Williams
526-555-4807
528-555-8276
653
Pamela
Hall
626-555-7881
546-555-4423
654
Sarah
Graham
302-555-8257
833-555-2025
655
Emily
Graham
645-555-8310
756-555-1265
656
Michael
Wilson
710-555-3420
753-555-4742
657
Christopher
Moore
846-555-6345
207-555-4175
658
Brianna
Johnson
725-555-2251
867-555-1430
659
Timothy
Davis
801-555-3546
511-555-8332