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,201
Jose
Moore
505-555-6171
532-555-1138
192,202
Christopher
Wilson
552-555-4282
378-555-2530
192,203
Christopher
Baker
204-555-8053
755-555-2077
192,204
Virginia
Fisher
244-555-2174
324-555-4233
192,205
Hailey
Gonzalez
283-555-7166
378-555-2803
192,206
Abner
Hall
664-555-4817
577-555-8551
192,207
Keith
Murray
405-555-1740
573-555-6870
192,208
Willie
Ortiz
465-555-3114
264-555-8037