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
11,254
Timothy
Moore
443-555-6883
217-555-5826
11,255
Linda
Brown
578-555-1278
720-555-2248
11,256
Timothy
Lee
208-555-7334
428-555-4520
11,257
Keith
Lee
353-555-1770
840-555-4260
11,258
Emily
Ortiz
504-555-8584
504-555-6787
11,259
Samuel
Jones
511-555-4138
441-555-2425
11,260
Samuel
Murray
762-555-1568
310-555-8868
11,261
Sandra
Allen
305-555-8322
608-555-5488