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
720,162
Timothy
Nelson
757-555-7215
643-555-4331
720,163
Abby
Brown
506-555-2666
433-555-1623
720,164
Keith
Johnson
464-555-7710
770-555-1568
720,165
Pamela
Bailey
421-555-5003
685-555-2880
720,166
Abner
Lee
781-555-6230
383-555-8114
720,167
Douglas
Ortiz
638-555-3344
685-555-3555
720,168
Jacob
Graham
827-555-1540
332-555-3657
720,169
Larry
Rose
851-555-3802
566-555-4265