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,568,252
Matthew
Johnson
682-555-8647
468-555-1043
5,568,253
Virginia
Lee
870-555-2287
208-555-7656
5,568,254
Larry
Smiith
788-555-4736
520-555-5735
5,568,255
Samuel
Gonzalez
833-555-8048
733-555-3686
5,568,256
Hailey
Davis
724-555-4674
780-555-7844
5,568,257
Jose
Baker
205-555-8281
358-555-2673
5,568,258
Matthew
Bailey
824-555-2610
718-555-6603
5,568,259
Sarah
Wilson
585-555-6785
511-555-4016