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
104,254
Timothy
Rose
486-555-2635
608-555-2004
104,255
Joshua
Wilson
222-555-8165
366-555-3628
104,256
Willie
Wilson
361-555-6132
365-555-5227
104,257
Jacob
Fisher
325-555-1231
761-555-1041
104,258
Willie
Brown
733-555-8450
418-555-7587
104,259
Debra
Ortiz
652-555-3763
334-555-2535
104,260
Nicholas
Johnson
247-555-6725
538-555-7708
104,261
Joshua
Rose
668-555-8833
731-555-7665