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,240
Matthew
Gomez
522-555-7578
625-555-2485
10,514,241
Kathleen
Smiith
844-555-5236
537-555-4837
10,514,242
Brianna
Williams
423-555-5234
653-555-1760
10,514,243
Pamela
Cruz
618-555-8075
675-555-1537
10,514,244
Willie
Black
350-555-7248
543-555-5854
10,514,245
Jacob
Cruz
454-555-5022
818-555-6726
10,514,246
Virginia
Allen
514-555-1840
523-555-4203
10,514,247
Virginia
Rose
784-555-8050
811-555-5038