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
5,514,498
Abby
Clark
284-555-2545
367-555-5703
5,514,499
Willie
Baker
628-555-7885
537-555-6300
5,514,500
Matthew
Donahue
566-555-4752
783-555-5506
5,514,501
Larry
Moore
437-555-3421
481-555-5601
5,514,502
Emily
Baker
368-555-4515
204-555-6634
5,514,503
Matthew
Jones
807-555-3558
745-555-1666
5,514,504
Linda
Cruz
726-555-5717
805-555-3211
5,514,505
Gerald
Lee
603-555-7881
272-555-6885