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
2,899,462
Keith
Brown
706-555-2362
648-555-5873
2,899,463
Jack
Jones
673-555-3378
766-555-7444
2,899,464
Nicholas
Allen
587-555-5214
204-555-6275
2,899,465
Christopher
Clark
305-555-5406
377-555-6861
2,899,466
Michael
Donahue
381-555-1360
515-555-3265
2,899,467
Timothy
Wilson
677-555-7766
518-555-7218
2,899,468
Douglas
Fisher
836-555-3178
655-555-2313
2,899,469
Sarah
Baker
422-555-7287
724-555-3526