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
15,098
Sandra
Clark
441-555-5241
527-555-8554
15,099
Samantha
Rose
601-555-7845
517-555-1555
15,100
Joshua
Brown
821-555-8045
735-555-8535
15,101
Hailey
Black
627-555-2501
832-555-6703
15,102
Joshua
Clark
654-555-2475
768-555-7381
15,103
Sandra
Gomez
604-555-6262
475-555-2547
15,104
Douglas
Brown
385-555-8521
363-555-1661
15,105
Sarah
Fisher
613-555-7623
370-555-5817