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
2,782,530
Douglas
Moore
532-555-6581
305-555-3444
2,782,531
Gerald
Williams
770-555-6305
504-555-5258
2,782,532
Timothy
Black
304-555-8802
327-555-6373
2,782,533
Abby
Rose
447-555-1306
532-555-5367
2,782,534
Douglas
Black
258-555-2102
686-555-7070
2,782,535
Timothy
Nelson
277-555-5213
425-555-4158
2,782,536
Michael
Allen
238-555-8241
214-555-4314
2,782,537
Kathleen
Davis
781-555-4775
680-555-5628