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
10,518,735
Samantha
Williams
453-555-3323
582-555-4480
10,518,736
Linda
Ortiz
633-555-1511
748-555-6620
10,518,737
Keith
Johnson
430-555-2621
783-555-4007
10,518,738
Samuel
Graham
264-555-2010
868-555-3205
10,518,739
Willie
Nelson
410-555-6788
738-555-4754
10,518,740
Hailey
Fisher
688-555-1177
472-555-3564
10,518,741
Abner
Rose
628-555-8680
710-555-2055
10,518,742
Sarah
Ortiz
608-555-4252
775-555-2773