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
3,421,843
Kathleen
Hall
280-555-5753
632-555-1854
3,421,844
Maria
Moore
842-555-3666
841-555-4555
3,421,845
Nicholas
Bailey
661-555-3723
230-555-2705
3,421,846
Jacob
Graham
380-555-1248
630-555-1611
3,421,847
Emily
Hall
682-555-4021
601-555-4675
3,421,848
Debra
Davis
743-555-2540
708-555-1477
3,421,849
Virginia
Williams
706-555-3105
804-555-8461
3,421,850
Jacob
Donahue
474-555-8712
457-555-4423