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
719,821
Jack
Gomez
720-555-3228
440-555-7233
719,822
Timothy
Baker
623-555-1028
421-555-3280
719,823
Pamela
Moore
516-555-4887
612-555-8755
719,824
Keith
Nelson
440-555-1214
585-555-7208
719,825
Sarah
Hall
817-555-6035
482-555-6517
719,826
Nicholas
Smiith
503-555-4375
815-555-7088
719,827
Matthew
Cruz
350-555-4716
851-555-2700
719,828
Gerald
Baker
651-555-3220
548-555-5546