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
28,800
Sarah
Graham
301-555-7234
605-555-4166
28,801
Maria
Davis
221-555-7040
206-555-5670
28,802
Linda
Ortiz
636-555-3610
817-555-3170
28,803
Michael
Cruz
847-555-6075
374-555-5306
28,804
Willie
Rose
261-555-4000
716-555-8452
28,805
Samuel
Hall
224-555-4642
461-555-7625
28,806
Sandra
Hall
357-555-5530
756-555-1300
28,807
Samuel
Clark
572-555-6401
517-555-2612