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
4,992
Abner
Murray
714-555-4753
813-555-4105
4,993
Emily
Donahue
274-555-6002
370-555-6736
4,994
Joshua
Bailey
306-555-4104
271-555-6722
4,995
Timothy
Cruz
383-555-3225
326-555-4555
4,996
Timothy
Allen
663-555-8650
658-555-1305
4,997
Sarah
Donahue
206-555-4051
637-555-2380
4,998
Samuel
Wilson
266-555-2060
828-555-8522
4,999
Abby
Smiith
852-555-6437
867-555-1416