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
3,758,968
Jacob
Lee
600-555-7034
646-555-8181
3,758,969
Emily
Cruz
317-555-8036
724-555-2570
3,758,970
Abby
Smiith
426-555-1402
382-555-7600
3,758,971
Timothy
Donahue
867-555-2008
682-555-6000
3,758,972
Jose
Gomez
845-555-3570
611-555-8400
3,758,973
Samantha
Black
233-555-5120
452-555-4481
3,758,974
Christopher
Murray
526-555-7726
634-555-7267
3,758,975
Hailey
Lee
525-555-4405
208-555-5580