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
3,768,206
Jack
Rose
415-555-3574
521-555-1747
3,768,207
Gerald
Wilson
214-555-1642
321-555-6206
3,768,208
Linda
Brown
238-555-5674
537-555-7728
3,768,209
Kathleen
Williams
271-555-5006
707-555-1024
3,768,210
Larry
Clark
282-555-3025
213-555-1536
3,768,211
Keith
Baker
725-555-6518
525-555-8021
3,768,212
Jacob
Gomez
212-555-6803
205-555-5213
3,768,213
Samantha
Bailey
384-555-7230
833-555-1572