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
652
Larry
Graham
783-555-8525
380-555-8177
653
Joshua
Black
214-555-3058
504-555-8866
654
Hailey
Wilson
764-555-6220
721-555-8711
655
Abby
Moore
358-555-3067
880-555-1821
656
Emily
Gonzalez
607-555-2345
448-555-7256
657
Gerald
Davis
257-555-5364
650-555-6250
658
Samantha
Brown
862-555-2011
641-555-2776
659
Samantha
Clark
256-555-3043
747-555-7852