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
29,947
Jacob
Clark
363-555-3787
445-555-5630
29,948
Maria
Jones
256-555-7078
301-555-6066
29,949
Sarah
Allen
612-555-4873
486-555-2846
29,950
Christopher
Johnson
626-555-2801
402-555-1658
29,951
Gerald
Hall
600-555-6638
754-555-3422
29,952
Gerald
Graham
522-555-6137
381-555-1251
29,953
Matthew
Williams
772-555-3055
423-555-6812
29,954
Jacob
Wilson
261-555-4082
658-555-5803