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
127,845
Jose
Clark
808-555-4263
321-555-7528
127,846
Willie
Gomez
214-555-2003
710-555-4628
127,847
Debra
Allen
764-555-4323
746-555-8178
127,848
Keith
Smiith
633-555-3110
658-555-6663
127,849
Samantha
Fisher
723-555-6886
582-555-5537
127,850
Abner
Gomez
280-555-5335
735-555-3586
127,851
Michael
Fisher
611-555-5542
255-555-3233
127,852
Matthew
Ortiz
644-555-3830
880-555-3501