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
52,980
Christopher
Nelson
683-555-6666
746-555-3514
52,981
Virginia
Moore
804-555-5176
288-555-7708
52,982
Emily
Moore
658-555-4158
238-555-4611
52,983
Linda
Clark
615-555-4832
884-555-5116
52,984
Nicholas
Hall
746-555-7588
407-555-1272
52,985
Abby
Jones
370-555-8853
746-555-8140
52,986
Michael
Nelson
457-555-2241
283-555-5680
52,987
Christopher
Gonzalez
826-555-1137
770-555-6836