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
4,930
Christopher
Gonzalez
714-555-3186
573-555-1657
4,931
Jack
Rose
566-555-1418
565-555-1482
4,932
Keith
Baker
331-555-7125
383-555-7338
4,933
Brianna
Gonzalez
244-555-4231
404-555-4764
4,934
Jack
Fisher
818-555-4436
664-555-4277
4,935
Keith
Williams
704-555-5674
836-555-6521
4,936
Nicholas
Moore
577-555-6034
311-555-7463
4,937
Hailey
Cruz
481-555-5712
261-555-1377