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
621
Virginia
Allen
218-555-6641
548-555-5510
622
Hailey
Clark
537-555-5173
282-555-7027
623
Linda
Wilson
631-555-2448
803-555-2843
624
Hailey
Davis
836-555-1458
432-555-1650
625
Jose
Williams
603-555-5750
538-555-4061
626
Kathleen
Johnson
355-555-8453
336-555-7631
627
Willie
Donahue
787-555-6258
677-555-4762
628
Christopher
Moore
565-555-3086
838-555-7126