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
3,549,953
Abner
Graham
687-555-5682
524-555-4028
3,549,954
Kathleen
Ortiz
436-555-2234
870-555-2384
3,549,955
Kathleen
Ortiz
861-555-1265
347-555-3755
3,549,956
Matthew
Graham
476-555-2655
685-555-5751
3,549,957
Larry
Allen
350-555-1510
680-555-7072
3,549,958
Christopher
Clark
421-555-8168
855-555-2735
3,549,959
Maria
Gomez
327-555-6013
407-555-2705
3,549,960
Hailey
Williams
774-555-8773
348-555-8350