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
112,159
Christopher
Fisher
358-555-5645
324-555-7588
112,160
Debra
Bailey
388-555-6154
710-555-7831
112,161
Matthew
Cruz
201-555-4882
766-555-4351
112,162
Emily
Hall
666-555-4622
252-555-6017
112,163
Michael
Gomez
707-555-5751
370-555-1326
112,164
Virginia
Donahue
738-555-6510
276-555-3550
112,165
Willie
Donahue
653-555-4881
806-555-5758
112,166
Maria
Allen
445-555-8465
410-555-8756