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
81,081
Douglas
Graham
453-555-2173
657-555-2003
81,082
Keith
Gomez
628-555-7751
842-555-5786
81,083
Michael
Jones
252-555-3662
683-555-6546
81,084
Jacob
Nelson
872-555-8337
864-555-6652
81,085
Michael
Jones
472-555-6167
516-555-3610
81,086
Brianna
Gonzalez
835-555-1451
231-555-1780
81,087
Maria
Lee
561-555-5161
265-555-8077
81,088
Matthew
Davis
424-555-3747
232-555-4512