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
722,084
Michael
Wilson
505-555-5477
706-555-2404
722,085
Linda
Donahue
885-555-5043
225-555-5432
722,086
Brianna
Johnson
405-555-3044
583-555-2080
722,087
Jack
Wilson
581-555-2146
870-555-7513
722,088
Abby
Nelson
636-555-2872
232-555-8352
722,089
Debra
Smiith
644-555-5856
518-555-4734
722,090
Maria
Smiith
437-555-4145
446-555-7852
722,091
Keith
Cruz
650-555-8045
360-555-2666