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
54,468
Keith
Williams
830-555-7314
852-555-7686
54,469
Timothy
Jones
478-555-3637
274-555-5150
54,470
Virginia
Clark
414-555-2322
682-555-2854
54,471
Abner
Gomez
620-555-4641
843-555-4340
54,472
Kathleen
Baker
728-555-3407
436-555-6154
54,473
Sarah
Black
420-555-8434
205-555-6358
54,474
Linda
Williams
300-555-4570
817-555-6056
54,475
Emily
Rose
705-555-2144
757-555-4522