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
192,046
Abby
Baker
624-555-1880
327-555-2630
192,047
Jacob
Rose
208-555-1357
680-555-5530
192,048
Emily
Gomez
846-555-4337
601-555-7435
192,049
Michael
Wilson
612-555-2147
251-555-6503
192,050
Larry
Baker
868-555-1027
721-555-4865
192,051
Jacob
Clark
663-555-5263
731-555-3467
192,052
Virginia
Donahue
787-555-8834
445-555-8286
192,053
Douglas
Nelson
236-555-7351
471-555-8283