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,998,190
Samantha
Jones
417-555-3872
654-555-8576
5,998,191
Maria
Rose
508-555-5513
472-555-2018
5,998,192
Michael
Cruz
730-555-6002
368-555-1436
5,998,193
Michael
Clark
301-555-4637
761-555-2508
5,998,194
Matthew
Bailey
645-555-4738
674-555-3417
5,998,195
Jacob
Bailey
745-555-7360
565-555-2114
5,998,196
Sarah
Wilson
677-555-2633
805-555-8661
5,998,197
Emily
Rose
738-555-2021
666-555-4365