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
3,659
Virginia
Fisher
851-555-2025
236-555-7830
3,660
Abby
Allen
424-555-2201
240-555-2211
3,661
Jose
Gomez
582-555-6377
217-555-8543
3,662
Willie
Brown
606-555-4687
424-555-6260
3,663
Larry
Johnson
403-555-2842
382-555-6820
3,664
Jacob
Lee
430-555-2714
681-555-3376
3,665
Sarah
Graham
614-555-2086
605-555-2468
3,666
Keith
Fisher
720-555-1640
772-555-8783