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
759,114
Douglas
Moore
486-555-6112
522-555-6176
759,115
Debra
Lee
561-555-2528
875-555-5455
759,116
Kathleen
Davis
381-555-1535
667-555-8830
759,117
Sarah
Rose
738-555-1848
226-555-6401
759,118
Douglas
Williams
502-555-2625
854-555-8012
759,119
Larry
Jones
667-555-1841
745-555-1301
759,120
Brianna
Graham
626-555-1501
555-555-7843
759,121
Brianna
Hall
808-555-6754
871-555-8620