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
721,247
Hailey
Fisher
358-555-6638
750-555-8880
721,248
Samuel
Nelson
716-555-6672
616-555-2843
721,249
Virginia
Hall
275-555-4575
603-555-1233
721,250
Abner
Nelson
323-555-5275
607-555-6351
721,251
Abby
Jones
601-555-5085
700-555-3782
721,252
Samuel
Allen
415-555-4574
560-555-4011
721,253
Abner
Lee
533-555-5158
817-555-3700
721,254
Kathleen
Clark
702-555-4877
745-555-4224