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
41,665
Sandra
Lee
460-555-4685
827-555-6007
41,666
Larry
Bailey
788-555-6012
341-555-1584
41,667
Maria
Gonzalez
720-555-1734
664-555-5706
41,668
Emily
Murray
658-555-6027
242-555-1881
41,669
Keith
Baker
334-555-4017
888-555-4020
41,670
Samantha
Donahue
345-555-2042
845-555-5071
41,671
Douglas
Allen
446-555-3670
670-555-4147
41,672
Christopher
Johnson
268-555-8108
251-555-4112