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
5,116
Samantha
Rose
843-555-5735
807-555-4551
5,117
Virginia
Bailey
743-555-8338
883-555-1141
5,118
Virginia
Jones
618-555-6607
474-555-6552
5,119
Abner
Wilson
285-555-7041
308-555-3582
5,120
Jacob
Gomez
800-555-8087
480-555-6133
5,121
Samuel
Baker
626-555-8263
886-555-2108
5,122
Samantha
Fisher
237-555-8858
615-555-3708
5,123
Jose
Williams
621-555-1528
852-555-6224