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
766,693
Gerald
Graham
344-555-3854
764-555-3686
766,694
Maria
Williams
320-555-7384
210-555-7008
766,695
Gerald
Bailey
557-555-6348
576-555-3138
766,696
Abby
Wilson
465-555-3486
451-555-1824
766,697
Samuel
Lee
285-555-4671
617-555-4241
766,698
Virginia
Gonzalez
248-555-5021
288-555-6330
766,699
Larry
Cruz
767-555-7535
321-555-2510
766,700
Linda
Wilson
677-555-3128
642-555-6878