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
63,876
Emily
Allen
854-555-6502
612-555-5505
63,877
Willie
Wilson
266-555-1270
627-555-7650
63,878
Maria
Wilson
416-555-8447
638-555-1082
63,879
Keith
Clark
521-555-7106
814-555-1630
63,880
Gerald
Johnson
411-555-6318
648-555-1108
63,881
Hailey
Murray
783-555-8460
540-555-2766
63,882
Samuel
Graham
728-555-8370
763-555-1734
63,883
Joshua
Rose
382-555-6566
315-555-5880