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
115,009
Gerald
Lee
875-555-2382
264-555-2104
115,010
Nicholas
Brown
758-555-1522
452-555-3452
115,011
Nicholas
Lee
544-555-2025
884-555-5461
115,012
Hailey
Bailey
856-555-4056
584-555-6163
115,013
Joshua
Johnson
453-555-6504
808-555-4415
115,014
Samantha
Davis
428-555-1412
377-555-5808
115,015
Christopher
Black
356-555-4227
500-555-2348
115,016
Samantha
Murray
807-555-4045
303-555-3126