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
3,808,909
Willie
Gomez
671-555-3100
485-555-6688
3,808,910
Samantha
Lee
451-555-2201
583-555-7344
3,808,911
Kathleen
Clark
272-555-5201
510-555-6332
3,808,912
Douglas
Gonzalez
777-555-3037
733-555-1550
3,808,913
Matthew
Hall
443-555-2735
833-555-8565
3,808,914
Keith
Baker
338-555-4631
627-555-6855
3,808,915
Douglas
Davis
351-555-3577
833-555-4553
3,808,916
Samuel
Ortiz
204-555-8740
256-555-7737