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
43,029
Keith
Moore
656-555-2016
811-555-1267
43,030
Timothy
Cruz
388-555-1615
351-555-5015
43,031
Virginia
Graham
584-555-2476
466-555-1684
43,032
Jacob
Johnson
420-555-1518
617-555-7760
43,033
Debra
Davis
823-555-5044
861-555-7312
43,034
Hailey
Fisher
704-555-1625
533-555-1710
43,035
Sandra
Donahue
288-555-7368
356-555-1210
43,036
Abby
Smiith
463-555-3431
570-555-3404