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
192,139
Debra
Wilson
834-555-1873
230-555-4802
192,140
Christopher
Donahue
705-555-1785
805-555-5882
192,141
Jose
Bailey
685-555-6306
662-555-6825
192,142
Keith
Gomez
584-555-7777
661-555-4777
192,143
Sandra
Baker
354-555-1882
867-555-3365
192,144
Virginia
Clark
245-555-1703
781-555-1564
192,145
Willie
Clark
708-555-7006
230-555-8452
192,146
Abner
Brown
284-555-8138
646-555-1037