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
763,655
Joshua
Brown
334-555-7661
782-555-2203
763,656
Gerald
Donahue
307-555-8152
847-555-4205
763,657
Jose
Brown
243-555-6118
746-555-4246
763,658
Gerald
Gomez
457-555-7300
545-555-4524
763,659
Michael
Johnson
452-555-6888
865-555-7342
763,660
Douglas
Murray
860-555-6637
487-555-2600
763,661
Jose
Nelson
285-555-2773
823-555-7324
763,662
Douglas
Gomez
618-555-3310
456-555-6862