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
160,767
Jose
Rose
236-555-5678
705-555-6335
160,768
Samuel
Moore
700-555-2201
371-555-1834
160,769
Christopher
Brown
848-555-8027
327-555-7581
160,770
Emily
Moore
567-555-2873
217-555-7552
160,771
Abby
Ortiz
578-555-7376
351-555-1275
160,772
Hailey
Lee
320-555-7440
460-555-2810
160,773
Samuel
Moore
376-555-1272
632-555-7055
160,774
Brianna
Cruz
767-555-5101
302-555-1701