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
23,096
Jose
Williams
214-555-1771
565-555-3122
23,097
Abby
Clark
734-555-7582
601-555-1753
23,098
Virginia
Donahue
714-555-7184
875-555-3133
23,099
Kathleen
Graham
615-555-3466
555-555-7166
23,100
Larry
Wilson
836-555-3755
324-555-7685
23,101
Douglas
Brown
324-555-2210
874-555-5706
23,102
Michael
Brown
578-555-3867
736-555-6638
23,103
Sandra
Nelson
413-555-1320
753-555-5104