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
708,165
Abner
Graham
828-555-4185
343-555-4453
708,166
Jacob
Brown
588-555-3265
642-555-5018
708,167
Maria
Wilson
635-555-3858
376-555-4334
708,168
Jack
Fisher
330-555-7071
357-555-6213
708,169
Nicholas
Johnson
672-555-6246
870-555-3017
708,170
Brianna
Bailey
418-555-8705
586-555-3420
708,171
Matthew
Brown
660-555-1438
654-555-2452
708,172
Larry
Gonzalez
670-555-4520
387-555-6044