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
600,967
Michael
Ortiz
214-555-1504
447-555-7734
600,968
Timothy
Graham
462-555-2081
483-555-1331
600,969
Pamela
Lee
651-555-5276
781-555-5343
600,970
Timothy
Williams
563-555-4680
463-555-3358
600,971
Matthew
Fisher
623-555-2766
663-555-8851
600,972
Hailey
Donahue
473-555-7648
737-555-8820
600,973
Jose
Nelson
340-555-5235
356-555-3777
600,974
Linda
Johnson
684-555-2181
854-555-4452