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
5,556,162
Joshua
Brown
545-555-1544
382-555-8884
5,556,163
Sandra
Black
822-555-5327
737-555-4665
5,556,164
Douglas
Jones
208-555-1634
238-555-3224
5,556,165
Samuel
Hall
403-555-3146
567-555-7763
5,556,166
Michael
Jones
474-555-3230
734-555-1321
5,556,167
Jacob
Brown
610-555-1862
600-555-1157
5,556,168
Nicholas
Cruz
348-555-8012
247-555-7173
5,556,169
Maria
Clark
410-555-8467
451-555-1704