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
3,045,131
Douglas
Smiith
513-555-6434
438-555-4712
3,045,132
Jack
Lee
676-555-2407
727-555-1340
3,045,133
Timothy
Murray
787-555-7786
852-555-6345
3,045,134
Abner
Clark
717-555-5216
417-555-6073
3,045,135
Maria
Moore
450-555-7326
206-555-8205
3,045,136
Debra
Black
201-555-5708
487-555-7258
3,045,137
Debra
Johnson
751-555-3504
426-555-3804
3,045,138
Sarah
Smiith
782-555-7878
854-555-2271