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
22,290
Gerald
Murray
718-555-2215
423-555-4764
22,291
Abner
Black
473-555-5523
543-555-7725
22,292
Keith
Wilson
463-555-1516
778-555-8581
22,293
Abner
Graham
334-555-6128
300-555-4306
22,294
Douglas
Jones
480-555-5501
343-555-6568
22,295
Larry
Wilson
358-555-1532
361-555-1744
22,296
Nicholas
Wilson
564-555-3162
317-555-2305
22,297
Sandra
Brown
888-555-7658
360-555-7108