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
3,044,883
Christopher
Bailey
442-555-7502
262-555-5561
3,044,884
Sandra
Nelson
244-555-8758
203-555-8860
3,044,885
Christopher
Donahue
654-555-6321
615-555-6382
3,044,886
Samuel
Nelson
256-555-1637
812-555-5321
3,044,887
Douglas
Wilson
368-555-5460
342-555-8116
3,044,888
Abby
Smiith
805-555-8281
562-555-6881
3,044,889
Kathleen
Murray
514-555-8182
425-555-4433
3,044,890
Willie
Cruz
586-555-1877
842-555-1256