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,732
Virginia
Graham
752-555-7432
755-555-3276
52,733
Matthew
Murray
546-555-2828
447-555-3637
52,734
Virginia
Graham
437-555-2240
203-555-8745
52,735
Gerald
Smiith
774-555-2325
467-555-4143
52,736
Samantha
Moore
236-555-7456
248-555-2126
52,737
Sandra
Clark
435-555-5820
443-555-5515
52,738
Keith
Brown
238-555-3023
875-555-6044
52,739
Joshua
Williams
578-555-2865
864-555-5245