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
719,945
Keith
Cruz
346-555-1046
483-555-6031
719,946
Samantha
Murray
864-555-4127
475-555-7322
719,947
Matthew
Davis
204-555-7518
330-555-2406
719,948
Pamela
Rose
371-555-2657
516-555-1125
719,949
Hailey
Johnson
317-555-1756
474-555-8086
719,950
Nicholas
Williams
812-555-1280
843-555-7705
719,951
Samantha
Hall
881-555-4330
653-555-1380
719,952
Michael
Graham
416-555-3810
470-555-7242