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
164,828
Timothy
Cruz
545-555-6216
765-555-2111
164,829
Larry
Williams
682-555-3031
468-555-3272
164,830
Gerald
Baker
277-555-5003
470-555-3730
164,831
Douglas
Gonzalez
313-555-8523
622-555-5118
164,832
Sandra
Johnson
241-555-5553
558-555-7723
164,833
Maria
Cruz
373-555-5336
286-555-3036
164,834
Nicholas
Hall
650-555-3042
330-555-3365
164,835
Michael
Williams
271-555-6701
481-555-8703