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
703,825
Kathleen
Lee
744-555-1243
647-555-6246
703,826
Gerald
Murray
237-555-4662
718-555-5631
703,827
Joshua
Black
886-555-3624
568-555-7038
703,828
Joshua
Clark
463-555-5173
528-555-8631
703,829
Abner
Black
423-555-5621
408-555-1560
703,830
Willie
Brown
227-555-7721
720-555-2565
703,831
Pamela
Brown
660-555-3521
283-555-7732
703,832
Willie
Bailey
604-555-4823
240-555-7073