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
191,984
Abner
Brown
664-555-3664
430-555-4787
191,985
Pamela
Donahue
688-555-2807
854-555-6160
191,986
Abner
Johnson
824-555-8610
511-555-2268
191,987
Matthew
Lee
556-555-5064
545-555-3635
191,988
Keith
Graham
441-555-4631
818-555-2733
191,989
Matthew
Clark
341-555-5843
548-555-8758
191,990
Virginia
Smiith
730-555-7572
308-555-7608
191,991
Abner
Murray
267-555-1818
332-555-2808