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
3,779,211
Douglas
Allen
782-555-7018
468-555-7745
3,779,212
Christopher
Lee
740-555-2245
220-555-7513
3,779,213
Samantha
Moore
887-555-2657
262-555-2262
3,779,214
Virginia
Rose
562-555-8516
223-555-8434
3,779,215
Willie
Rose
700-555-2811
460-555-6235
3,779,216
Samuel
Fisher
408-555-8257
413-555-7552
3,779,217
Emily
Brown
725-555-4701
478-555-4576
3,779,218
Sandra
Murray
301-555-6713
743-555-4871