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
709,374
Abner
Baker
766-555-1770
806-555-1215
709,375
Michael
Baker
567-555-7435
287-555-4638
709,376
Keith
Allen
761-555-7200
783-555-3553
709,377
Sandra
Cruz
208-555-5503
272-555-4460
709,378
Keith
Williams
253-555-3713
383-555-5602
709,379
Nicholas
Johnson
555-555-4877
366-555-2447
709,380
Christopher
Donahue
728-555-6744
627-555-1168
709,381
Keith
Williams
314-555-3118
647-555-4135