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
54,189
Samantha
Gonzalez
806-555-7715
422-555-4476
54,190
Jose
Baker
820-555-1057
730-555-4503
54,191
Keith
Rose
760-555-2243
732-555-2833
54,192
Larry
Allen
763-555-1752
858-555-5743
54,193
Willie
Murray
363-555-3733
852-555-1662
54,194
Douglas
Brown
211-555-8881
284-555-1878
54,195
Linda
Wilson
571-555-8063
564-555-1440
54,196
Timothy
Fisher
815-555-2357
558-555-3161