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
1,464,658
Michael
Lee
242-555-7426
668-555-4108
1,464,659
Matthew
Graham
283-555-5411
764-555-1007
1,464,660
Gerald
Davis
583-555-5473
246-555-5724
1,464,661
Abby
Lee
242-555-6544
856-555-6425
1,464,662
Michael
Wilson
840-555-1482
451-555-6065
1,464,663
Pamela
Murray
730-555-2014
508-555-6562
1,464,664
Linda
Bailey
304-555-2087
351-555-8310
1,464,665
Keith
Moore
332-555-6120
531-555-5377