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
27,467
Sandra
Gonzalez
578-555-1431
800-555-2027
27,468
Michael
Ortiz
335-555-8717
471-555-4845
27,469
Sandra
Johnson
207-555-7076
447-555-5450
27,470
Timothy
Moore
850-555-3221
784-555-5073
27,471
Joshua
Davis
723-555-5380
653-555-7568
27,472
Jacob
Williams
710-555-7255
558-555-8544
27,473
Debra
Graham
818-555-7000
374-555-8245
27,474
Sandra
Graham
420-555-2142
673-555-5757