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
45,199
Michael
Smiith
574-555-6335
304-555-6743
45,200
Joshua
Lee
353-555-1754
861-555-7785
45,201
Larry
Hall
660-555-7333
283-555-6767
45,202
Kathleen
Lee
842-555-6210
771-555-5065
45,203
Kathleen
Lee
475-555-1118
862-555-4451
45,204
Sandra
Gonzalez
820-555-7641
720-555-1828
45,205
Hailey
Hall
206-555-6051
878-555-1783
45,206
Linda
Ortiz
707-555-7273
402-555-6278