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
746,233
Gerald
Wilson
218-555-1701
826-555-7855
746,234
Jacob
Allen
814-555-2246
417-555-3778
746,235
Sandra
Davis
538-555-2810
404-555-8778
746,236
Jacob
Donahue
438-555-5605
772-555-1524
746,237
Maria
Graham
215-555-3753
416-555-3347
746,238
Timothy
Lee
264-555-1501
755-555-3424
746,239
Maria
Williams
472-555-4622
363-555-5505
746,240
Christopher
Murray
668-555-8800
323-555-3132