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
654,721
Sarah
Wilson
370-555-6758
281-555-1563
654,722
Maria
Fisher
750-555-6250
552-555-5478
654,723
Virginia
Davis
318-555-4551
716-555-2471
654,724
Debra
Williams
257-555-5232
220-555-2651
654,725
Emily
Murray
370-555-3162
508-555-8338
654,726
Abner
Graham
806-555-2225
531-555-4576
654,727
Abby
Davis
320-555-2255
551-555-8867
654,728
Pamela
Murray
540-555-7713
418-555-8412