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
707,979
Pamela
Smiith
313-555-3385
304-555-8555
707,980
Michael
Bailey
512-555-8453
567-555-2766
707,981
Keith
Williams
216-555-3274
224-555-2436
707,982
Debra
Fisher
700-555-5514
465-555-7781
707,983
Brianna
Graham
673-555-5172
664-555-7386
707,984
Christopher
Davis
341-555-5275
880-555-2422
707,985
Abner
Baker
352-555-8854
342-555-3123
707,986
Keith
Williams
445-555-3773
378-555-6310