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
11,316
Maria
Bailey
355-555-6247
655-555-3054
11,317
Abby
Moore
746-555-6171
386-555-5104
11,318
Christopher
Nelson
646-555-1352
363-555-6220
11,319
Jose
Graham
745-555-2384
514-555-3382
11,320
Douglas
Allen
216-555-7331
518-555-6105
11,321
Samuel
Brown
603-555-1720
816-555-2027
11,322
Douglas
Baker
611-555-1201
844-555-7745
11,323
Brianna
Davis
742-555-2346
614-555-4703