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
1,467,510
Matthew
Hall
358-555-5050
561-555-8008
1,467,511
Christopher
Gomez
836-555-1504
234-555-6804
1,467,512
Douglas
Brown
510-555-4714
788-555-4370
1,467,513
Emily
Gonzalez
200-555-6861
773-555-5872
1,467,514
Hailey
Nelson
600-555-5122
281-555-8288
1,467,515
Virginia
Donahue
447-555-2653
366-555-6520
1,467,516
Samuel
Fisher
818-555-3027
515-555-8647
1,467,517
Emily
Williams
504-555-3334
773-555-7752