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
387,594
Abby
Clark
763-555-2710
447-555-8165
387,595
Maria
Clark
867-555-5523
747-555-4426
387,596
Emily
Rose
464-555-5606
846-555-6854
387,597
Samantha
Brown
616-555-2730
464-555-2284
387,598
Douglas
Black
506-555-2400
210-555-4552
387,599
Abner
Smiith
836-555-6337
233-555-6434
387,600
Willie
Donahue
781-555-6683
367-555-8173
387,601
Maria
Allen
535-555-3067
708-555-4410