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
867,784
Douglas
Bailey
864-555-4782
386-555-5515
867,785
Hailey
Black
410-555-5825
862-555-5083
867,786
Gerald
Smiith
581-555-3226
681-555-1241
867,787
Jacob
Graham
477-555-4160
215-555-6745
867,788
Joshua
Brown
672-555-5761
723-555-6002
867,789
Jacob
Brown
621-555-4272
662-555-3886
867,790
Abner
Lee
244-555-3665
675-555-6283
867,791
Sandra
Jones
662-555-4548
878-555-1311