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
705,065
Abby
Smiith
882-555-7627
762-555-5232
705,066
Jose
Rose
346-555-7500
788-555-4741
705,067
Michael
Williams
566-555-8812
570-555-8724
705,068
Linda
Gonzalez
358-555-7334
205-555-5410
705,069
Larry
Jones
402-555-3200
720-555-3555
705,070
Douglas
Johnson
517-555-2811
876-555-1540
705,071
Samuel
Gomez
758-555-8635
738-555-6043
705,072
Douglas
Ortiz
601-555-5608
281-555-4085