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,038
Michael
Rose
234-555-1270
430-555-2466
3,045,039
Gerald
Cruz
372-555-5461
317-555-3482
3,045,040
Willie
Clark
557-555-6541
485-555-8431
3,045,041
Keith
Baker
507-555-4851
646-555-2884
3,045,042
Virginia
Rose
616-555-3683
806-555-4221
3,045,043
Abner
Donahue
772-555-2107
501-555-7756
3,045,044
Pamela
Davis
641-555-5855
782-555-4024
3,045,045
Matthew
Donahue
643-555-4745
711-555-6551