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
5,999,120
Emily
Davis
378-555-2000
668-555-4200
5,999,121
Timothy
Cruz
336-555-1286
442-555-8153
5,999,122
Samuel
Clark
687-555-2064
685-555-5301
5,999,123
Sarah
Nelson
745-555-4212
718-555-3531
5,999,124
Jack
Smiith
743-555-4674
708-555-6483
5,999,125
Douglas
Rose
544-555-7246
447-555-2408
5,999,126
Sarah
Davis
886-555-8338
373-555-1568
5,999,127
Joshua
Murray
456-555-2722
605-555-3367