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
27,746
Jose
Murray
530-555-2210
407-555-3735
27,747
Maria
Gomez
318-555-5331
683-555-7780
27,748
Timothy
Bailey
468-555-8853
325-555-1773
27,749
Jack
Nelson
224-555-3387
528-555-4614
27,750
Pamela
Gonzalez
247-555-2868
353-555-7721
27,751
Pamela
Donahue
275-555-6140
554-555-2225
27,752
Joshua
Black
302-555-8262
543-555-6767
27,753
Samantha
Donahue
553-555-6404
211-555-6137