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,860
Willie
Ortiz
386-555-4482
707-555-8144
5,861
Matthew
Baker
575-555-2405
212-555-4580
5,862
Matthew
Nelson
370-555-2641
243-555-8538
5,863
Maria
Graham
634-555-1557
507-555-1111
5,864
Debra
Lee
826-555-2752
637-555-8507
5,865
Jacob
Gonzalez
363-555-1830
605-555-5170
5,866
Gerald
Cruz
650-555-3711
366-555-7817
5,867
Willie
Wilson
300-555-4340
511-555-4803