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
243,692
Michael
Wilson
440-555-1002
830-555-4423
243,693
Christopher
Cruz
406-555-6332
404-555-2707
243,694
Jose
Bailey
828-555-5106
680-555-7725
243,695
Matthew
Jones
701-555-6672
623-555-5721
243,696
Linda
Smiith
563-555-1255
640-555-1857
243,697
Virginia
Allen
376-555-2842
257-555-3085
243,698
Emily
Smiith
651-555-2564
310-555-7007
243,699
Hailey
Cruz
388-555-6007
685-555-1101