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
6,000,267
Abner
Graham
335-555-3436
683-555-6845
6,000,268
Samuel
Jones
566-555-4404
710-555-8231
6,000,269
Michael
Fisher
262-555-8050
202-555-2435
6,000,270
Sandra
Nelson
206-555-6164
676-555-1772
6,000,271
Virginia
Smiith
485-555-1435
310-555-6565
6,000,272
Abby
Johnson
385-555-2637
832-555-6722
6,000,273
Abby
Moore
472-555-5857
402-555-2210
6,000,274
Pamela
Graham
468-555-2525
722-555-6406