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
31,063
Abby
Hall
456-555-1032
825-555-6466
31,064
Abner
Donahue
885-555-6685
567-555-2188
31,065
Linda
Rose
301-555-6544
638-555-2307
31,066
Samuel
Clark
266-555-6381
640-555-8562
31,067
Michael
Nelson
285-555-1843
274-555-4607
31,068
Virginia
Wilson
346-555-2605
726-555-1876
31,069
Douglas
Murray
756-555-1015
877-555-7230
31,070
Pamela
Clark
830-555-8504
328-555-6535