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
73,037
Pamela
Bailey
418-555-5311
703-555-1706
73,038
Douglas
Moore
858-555-6422
457-555-7515
73,039
Emily
Moore
711-555-1416
357-555-3641
73,040
Virginia
Johnson
624-555-1768
280-555-7232
73,041
Timothy
Smiith
553-555-3255
876-555-2058
73,042
Nicholas
Johnson
428-555-7010
260-555-6547
73,043
Michael
Donahue
833-555-4571
305-555-1534
73,044
Gerald
Black
533-555-1038
701-555-3517