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
931
Pamela
Rose
804-555-3882
701-555-1825
932
Pamela
Clark
383-555-1587
511-555-5002
933
Jack
Moore
350-555-3273
373-555-4188
934
Timothy
Rose
330-555-2006
366-555-2412
935
Samuel
Jones
673-555-4473
302-555-2661
936
Sarah
Wilson
803-555-4713
287-555-8180
937
Jose
Rose
522-555-5466
486-555-6177
938
Abner
Fisher
316-555-3546
365-555-7863