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
654,969
Linda
Davis
580-555-7634
564-555-7860
654,970
Nicholas
Davis
560-555-3441
285-555-1478
654,971
Virginia
Donahue
531-555-7751
680-555-6728
654,972
Douglas
Moore
307-555-2535
578-555-1512
654,973
Brianna
Rose
853-555-5657
714-555-2440
654,974
Keith
Nelson
413-555-8737
828-555-4088
654,975
Linda
Brown
431-555-3716
314-555-4833
654,976
Keith
Jones
524-555-6502
408-555-7167