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
21,081
Sarah
Fisher
780-555-2041
847-555-8385
21,082
Christopher
Williams
644-555-6116
707-555-4533
21,083
Christopher
Graham
250-555-2360
836-555-1225
21,084
Linda
Rose
284-555-3235
341-555-7847
21,085
Kathleen
Clark
511-555-4231
703-555-6821
21,086
Emily
Hall
434-555-8403
652-555-5518
21,087
Nicholas
Smiith
341-555-1516
686-555-8044
21,088
Nicholas
Graham
334-555-3658
844-555-7335