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
3,473,980
Keith
Murray
834-555-7754
688-555-2676
3,473,981
Emily
Graham
774-555-4680
327-555-5668
3,473,982
Sarah
Baker
815-555-4304
642-555-2732
3,473,983
Abby
Moore
874-555-8017
747-555-8613
3,473,984
Timothy
Jones
837-555-3104
437-555-7117
3,473,985
Christopher
Smiith
652-555-1411
286-555-7554
3,473,986
Samantha
Lee
358-555-7623
667-555-5627
3,473,987
Willie
Cruz
885-555-6526
382-555-5400