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
655,775
Matthew
Clark
654-555-8786
587-555-2336
655,776
Willie
Hall
814-555-3615
700-555-6640
655,777
Samuel
Brown
203-555-4003
674-555-4624
655,778
Emily
Murray
467-555-8628
844-555-5470
655,779
Gerald
Gonzalez
572-555-6223
757-555-6233
655,780
Abner
Jones
338-555-6786
720-555-7184
655,781
Christopher
Clark
260-555-5226
830-555-3854
655,782
Willie
Williams
757-555-7181
512-555-8508