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
69,782
Kathleen
Jones
817-555-7085
737-555-1377
69,783
Virginia
Williams
273-555-5030
241-555-6106
69,784
Abner
Rose
400-555-7483
200-555-2752
69,785
Willie
Black
731-555-3071
743-555-2553
69,786
Samuel
Donahue
380-555-5133
683-555-5605
69,787
Brianna
Rose
485-555-4718
652-555-4137
69,788
Samantha
Smiith
811-555-7626
842-555-3715
69,789
Christopher
Rose
572-555-7846
228-555-3347