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
559
Emily
Jones
475-555-6113
811-555-2148
560
Gerald
Graham
707-555-1077
661-555-2514
561
Debra
Fisher
781-555-8658
253-555-6861
562
Joshua
Fisher
778-555-5177
243-555-6088
563
Willie
Graham
485-555-3046
203-555-3765
564
Christopher
Graham
727-555-1416
618-555-8471
565
Jose
Lee
612-555-7474
502-555-1773
566
Abby
Fisher
508-555-7208
327-555-8118