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,940
Sarah
Williams
862-555-7407
277-555-7285
708,941
Abner
Wilson
438-555-3013
425-555-8013
708,942
Nicholas
Moore
888-555-7414
478-555-7527
708,943
Samantha
Murray
814-555-8175
374-555-4114
708,944
Debra
Williams
736-555-4650
228-555-3282
708,945
Samuel
Bailey
203-555-1578
476-555-4836
708,946
Samantha
Donahue
652-555-6668
634-555-3368
708,947
Virginia
Fisher
525-555-6676
731-555-2001