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
2,783,987
Sarah
Lee
415-555-3836
415-555-3304
2,783,988
Douglas
Bailey
626-555-7522
405-555-3127
2,783,989
Jack
Allen
403-555-6633
456-555-5646
2,783,990
Kathleen
Fisher
347-555-6542
456-555-3536
2,783,991
Nicholas
Rose
212-555-1287
354-555-2201
2,783,992
Abby
Graham
767-555-2847
670-555-1852
2,783,993
Maria
Davis
483-555-1083
755-555-3704
2,783,994
Larry
Donahue
350-555-5861
568-555-6284