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
2,326
Willie
Lee
211-555-6681
275-555-3624
2,327
Douglas
Gomez
813-555-3278
688-555-4555
2,328
Emily
Clark
877-555-6147
624-555-6457
2,329
Kathleen
Baker
516-555-1082
213-555-3066
2,330
Nicholas
Johnson
222-555-4581
812-555-7820
2,331
Michael
Fisher
883-555-5410
228-555-8208
2,332
Samantha
Johnson
388-555-4801
308-555-4008
2,333
Virginia
Davis
511-555-3051
315-555-6585