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
10,514,054
Samuel
Williams
501-555-8210
270-555-1170
10,514,055
Jose
Donahue
885-555-8500
511-555-4212
10,514,056
Jack
Nelson
520-555-8471
338-555-4625
10,514,057
Nicholas
Gomez
542-555-7721
587-555-8471
10,514,058
Gerald
Fisher
571-555-7467
586-555-2314
10,514,059
Timothy
Hall
734-555-6344
648-555-8102
10,514,060
Christopher
Lee
742-555-3083
447-555-6155
10,514,061
Christopher
Black
765-555-2217
886-555-6655