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
6,014,372
Michael
Bailey
767-555-3448
322-555-1208
6,014,373
Brianna
Rose
337-555-8254
355-555-8022
6,014,374
Brianna
Brown
751-555-5718
877-555-8084
6,014,375
Emily
Bailey
834-555-1576
301-555-3020
6,014,376
Douglas
Smiith
545-555-2812
271-555-2854
6,014,377
Sarah
Fisher
637-555-7075
574-555-5607
6,014,378
Debra
Clark
548-555-2250
384-555-2687
6,014,379
Abby
Ortiz
233-555-5028
344-555-7267