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
3,200,658
Larry
Johnson
768-555-8068
412-555-2006
3,200,659
Sandra
Gonzalez
605-555-1167
332-555-3127
3,200,660
Jack
Davis
663-555-7532
733-555-1257
3,200,661
Maria
Nelson
534-555-5814
666-555-3327
3,200,662
Sarah
Gonzalez
322-555-4417
681-555-7817
3,200,663
Timothy
Johnson
787-555-5702
827-555-7162
3,200,664
Christopher
Davis
721-555-4475
764-555-3106
3,200,665
Maria
Baker
380-555-2717
858-555-7485