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
5,023
Pamela
Fisher
477-555-5556
360-555-2017
5,024
Virginia
Johnson
274-555-8227
558-555-6004
5,025
Linda
Cruz
840-555-7437
424-555-7355
5,026
Virginia
Gonzalez
761-555-1273
315-555-2477
5,027
Christopher
Murray
617-555-7374
351-555-7158
5,028
Willie
Baker
547-555-4100
677-555-8037
5,029
Abner
Davis
250-555-5368
322-555-1288
5,030
Douglas
Davis
264-555-5746
771-555-3622