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
705,468
Pamela
Clark
256-555-5637
287-555-6417
705,469
Jacob
Gonzalez
518-555-4006
225-555-2008
705,470
Kathleen
Rose
303-555-6442
724-555-6763
705,471
Linda
Smiith
832-555-7453
580-555-5245
705,472
Abby
Baker
404-555-2243
420-555-4443
705,473
Abby
Clark
888-555-4282
587-555-6647
705,474
Matthew
Davis
686-555-3844
628-555-8846
705,475
Samantha
Clark
656-555-5852
842-555-8722