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
718,860
Abby
Moore
620-555-7627
272-555-5135
718,861
Jacob
Clark
656-555-4441
421-555-1230
718,862
Michael
Hall
718-555-5508
322-555-7048
718,863
Samuel
Smiith
710-555-7387
724-555-1224
718,864
Samuel
Gomez
801-555-3353
561-555-7020
718,865
Willie
Gonzalez
708-555-1053
428-555-6045
718,866
Kathleen
Donahue
661-555-4016
556-555-7350
718,867
Michael
Clark
622-555-6065
206-555-6855