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,517,930
Timothy
Bailey
373-555-3442
378-555-4711
3,517,931
Jose
Ortiz
878-555-4578
733-555-8081
3,517,932
Samuel
Ortiz
808-555-3531
353-555-2100
3,517,933
Michael
Jones
632-555-5720
713-555-1357
3,517,934
Gerald
Black
323-555-4416
886-555-7061
3,517,935
Sarah
Clark
887-555-6681
864-555-2646
3,517,936
Douglas
Bailey
377-555-8650
502-555-2874
3,517,937
Samantha
Gonzalez
635-555-3421
283-555-3130