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
104,037
Nicholas
Johnson
687-555-8170
561-555-5646
104,038
Kathleen
Wilson
225-555-4058
543-555-4303
104,039
Keith
Murray
780-555-8387
553-555-8555
104,040
Maria
Gonzalez
611-555-6360
368-555-4644
104,041
Keith
Donahue
321-555-5784
742-555-5122
104,042
Willie
Bailey
423-555-3854
604-555-8802
104,043
Jacob
Gonzalez
311-555-7056
820-555-7832
104,044
Joshua
Baker
431-555-7442
580-555-5012