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
654,783
Keith
Bailey
782-555-4664
801-555-8762
654,784
Virginia
Allen
216-555-3270
780-555-6474
654,785
Virginia
Rose
422-555-7140
285-555-6356
654,786
Abby
Brown
843-555-6824
547-555-4374
654,787
Abner
Fisher
726-555-4462
663-555-8371
654,788
Kathleen
Rose
640-555-8343
470-555-7428
654,789
Nicholas
Hall
882-555-2111
780-555-4448
654,790
Michael
Nelson
477-555-7751
540-555-5512