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
30,009
Gerald
Ortiz
725-555-5270
251-555-1268
30,010
Abner
Davis
352-555-7313
715-555-3280
30,011
Willie
Wilson
822-555-5466
854-555-6338
30,012
Emily
Black
255-555-3288
662-555-4757
30,013
Christopher
Gomez
514-555-6210
480-555-4030
30,014
Matthew
Jones
242-555-4211
285-555-2277
30,015
Maria
Williams
885-555-7208
454-555-3367
30,016
Larry
Brown
802-555-8320
240-555-5207