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
721,774
Larry
Ortiz
637-555-6505
223-555-5722
721,775
Maria
Cruz
284-555-4457
533-555-3452
721,776
Willie
Graham
735-555-6366
574-555-1586
721,777
Abner
Donahue
325-555-3742
325-555-8744
721,778
Larry
Ortiz
410-555-2504
785-555-8154
721,779
Jose
Ortiz
881-555-6305
811-555-4152
721,780
Kathleen
Allen
676-555-2054
383-555-7002
721,781
Pamela
Gonzalez
342-555-1587
310-555-3453