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
1,466,146
Samuel
Clark
336-555-4170
724-555-2483
1,466,147
Maria
Murray
422-555-2644
620-555-3845
1,466,148
Jose
Moore
720-555-6001
473-555-8171
1,466,149
Kathleen
Wilson
238-555-7462
665-555-6458
1,466,150
Debra
Brown
826-555-5856
683-555-1868
1,466,151
Samantha
Williams
557-555-2063
373-555-6385
1,466,152
Keith
Donahue
571-555-2252
235-555-3448
1,466,153
Michael
Donahue
472-555-3860
410-555-1154