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
114,885
Pamela
Hall
716-555-5464
331-555-3026
114,886
Nicholas
Murray
713-555-5418
458-555-3528
114,887
Kathleen
Smiith
324-555-2117
480-555-5140
114,888
Linda
Graham
751-555-1724
441-555-6458
114,889
Michael
Ortiz
848-555-2753
264-555-4535
114,890
Debra
Hall
553-555-2202
627-555-4455
114,891
Abby
Graham
845-555-8121
741-555-7100
114,892
Abby
Smiith
542-555-4800
845-555-6313