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
43,060
Kathleen
Baker
644-555-8136
683-555-7668
43,061
Christopher
Nelson
213-555-8436
886-555-4785
43,062
Keith
Cruz
821-555-6783
314-555-5184
43,063
Jose
Wilson
865-555-3506
844-555-2662
43,064
Emily
Fisher
715-555-8656
718-555-5238
43,065
Sandra
Fisher
728-555-6834
513-555-7788
43,066
Abner
Johnson
273-555-7312
521-555-2077
43,067
Pamela
Ortiz
241-555-7321
235-555-8413