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
655,837
Christopher
Black
677-555-8757
274-555-2758
655,838
Brianna
Ortiz
521-555-2824
776-555-5061
655,839
Nicholas
Donahue
284-555-5648
863-555-3160
655,840
Pamela
Rose
446-555-3545
264-555-4263
655,841
Kathleen
Gonzalez
477-555-4172
683-555-2273
655,842
Michael
Gomez
863-555-3684
418-555-6616
655,843
Douglas
Ortiz
426-555-8511
825-555-4253
655,844
Keith
Clark
272-555-2561
818-555-7474