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
22,042
Willie
Brown
853-555-1481
722-555-7385
22,043
Gerald
Williams
870-555-4314
333-555-3563
22,044
Hailey
Lee
773-555-5827
321-555-8767
22,045
Samuel
Black
362-555-2580
438-555-1030
22,046
Jacob
Jones
381-555-6014
757-555-4271
22,047
Matthew
Williams
677-555-2176
753-555-4233
22,048
Maria
Hall
658-555-7821
278-555-4307
22,049
Gerald
Graham
233-555-2345
541-555-1203