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
5,023
Christopher
Baker
766-555-1835
273-555-2661
5,024
Sandra
Ortiz
746-555-1630
400-555-1328
5,025
Willie
Baker
368-555-2063
775-555-5165
5,026
Sarah
Moore
544-555-1008
522-555-5162
5,027
Gerald
Ortiz
346-555-3502
676-555-4178
5,028
Matthew
Brown
734-555-8522
243-555-8548
5,029
Jose
Rose
521-555-7640
225-555-4406
5,030
Willie
Lee
628-555-8765
800-555-1653