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
705,840
Timothy
Gonzalez
351-555-8768
837-555-1323
705,841
Pamela
Donahue
682-555-6654
262-555-7773
705,842
Maria
Davis
802-555-1427
685-555-4817
705,843
Jacob
Graham
782-555-1406
485-555-3228
705,844
Samuel
Black
826-555-1523
860-555-4543
705,845
Kathleen
Moore
674-555-8087
615-555-8815
705,846
Linda
Gomez
411-555-8424
658-555-4841
705,847
Larry
Wilson
354-555-5711
567-555-4711