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
28,614
Emily
Lee
742-555-3377
517-555-4038
28,615
Willie
Clark
707-555-2688
412-555-4832
28,616
Virginia
Johnson
678-555-8874
412-555-7141
28,617
Jose
Graham
785-555-6003
468-555-8772
28,618
Larry
Gonzalez
604-555-3102
228-555-6468
28,619
Jack
Brown
655-555-1148
614-555-5323
28,620
Kathleen
Wilson
247-555-3421
213-555-5785
28,621
Sandra
Black
722-555-2134
742-555-7076