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
708,072
Michael
Allen
445-555-1033
522-555-8854
708,073
Gerald
Jones
540-555-6372
665-555-1228
708,074
Joshua
Rose
217-555-8441
233-555-2000
708,075
Sarah
Brown
680-555-7080
353-555-7260
708,076
Michael
Fisher
274-555-2785
517-555-6783
708,077
Sarah
Wilson
326-555-3720
476-555-2383
708,078
Maria
Hall
688-555-2581
818-555-8332
708,079
Willie
Davis
486-555-4286
437-555-2286