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
1,466,766
Jacob
Ortiz
305-555-1028
551-555-8816
1,466,767
Willie
Brown
203-555-4163
825-555-3231
1,466,768
Sarah
Clark
578-555-3718
204-555-7675
1,466,769
Abner
Black
655-555-1225
332-555-7314
1,466,770
Willie
Brown
782-555-4634
838-555-5816
1,466,771
Douglas
Lee
500-555-2142
765-555-4708
1,466,772
Debra
Nelson
275-555-7224
478-555-2068
1,466,773
Samuel
Graham
647-555-1435
638-555-5557