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
115,195
Willie
Moore
238-555-3386
475-555-5313
115,196
Gerald
Johnson
517-555-3113
214-555-1404
115,197
Jose
Johnson
630-555-8013
438-555-6228
115,198
Debra
Bailey
546-555-8486
855-555-1506
115,199
Jose
Wilson
637-555-5862
735-555-7867
115,200
Hailey
Rose
686-555-1142
221-555-1888
115,201
Virginia
Clark
612-555-8766
818-555-8134
115,202
Linda
Hall
724-555-5613
562-555-3653