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
719,015
Virginia
Cruz
658-555-4106
341-555-8026
719,016
Abby
Graham
544-555-7680
467-555-5670
719,017
Debra
Ortiz
605-555-4838
543-555-6807
719,018
Douglas
Donahue
665-555-2877
365-555-2552
719,019
Larry
Murray
277-555-8470
752-555-3068
719,020
Nicholas
Williams
241-555-5440
252-555-6852
719,021
Pamela
Brown
448-555-8086
538-555-2366
719,022
Joshua
Cruz
252-555-7304
253-555-7156