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
745,861
Abner
Donahue
833-555-5308
304-555-2768
745,862
Samantha
Nelson
405-555-4564
861-555-2371
745,863
Joshua
Moore
640-555-7303
438-555-1563
745,864
Michael
Clark
884-555-8532
748-555-6478
745,865
Keith
Williams
523-555-1844
674-555-4138
745,866
Abby
Johnson
220-555-2724
251-555-3676
745,867
Gerald
Davis
734-555-8286
403-555-1256
745,868
Sandra
Jones
518-555-5435
237-555-7441