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
54,096
Linda
Smiith
288-555-1564
457-555-5183
54,097
Pamela
Graham
383-555-1216
731-555-7474
54,098
Sarah
Fisher
527-555-3066
743-555-1573
54,099
Debra
Gonzalez
284-555-7435
318-555-3616
54,100
Kathleen
Graham
214-555-3038
514-555-3777
54,101
Emily
Donahue
424-555-7704
237-555-8242
54,102
Sandra
Bailey
326-555-4443
315-555-7234
54,103
Jack
Gomez
243-555-3352
284-555-7841