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
5,516,792
Timothy
Allen
445-555-2638
868-555-6840
5,516,793
Jose
Allen
371-555-2881
803-555-6804
5,516,794
Kathleen
Donahue
462-555-6634
876-555-3366
5,516,795
Christopher
Graham
576-555-1555
280-555-2810
5,516,796
Sandra
Baker
431-555-2225
623-555-5111
5,516,797
Willie
Williams
486-555-4525
743-555-7286
5,516,798
Brianna
Wilson
215-555-5680
865-555-4024
5,516,799
Willie
Graham
863-555-8163
675-555-1512