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
41,851
Matthew
Murray
552-555-7507
377-555-1746
41,852
Emily
Nelson
213-555-7252
714-555-7387
41,853
Abner
Donahue
307-555-2345
336-555-3702
41,854
Gerald
Donahue
207-555-1632
647-555-3441
41,855
Abner
Lee
666-555-5237
361-555-3220
41,856
Jack
Ortiz
441-555-8786
410-555-3413
41,857
Michael
Williams
512-555-7142
363-555-7211
41,858
Debra
Bailey
473-555-1751
381-555-5153