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
168,052
Joshua
Hall
370-555-4374
276-555-1285
168,053
Samuel
Murray
600-555-8047
685-555-3807
168,054
Jack
Wilson
334-555-7315
205-555-2113
168,055
Jacob
Allen
761-555-6651
680-555-2155
168,056
Timothy
Bailey
717-555-3322
644-555-5573
168,057
Linda
Moore
380-555-3266
581-555-8274
168,058
Michael
Murray
280-555-6686
552-555-8655
168,059
Hailey
Hall
318-555-6756
833-555-1775