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
2,698
Douglas
Johnson
463-555-4875
801-555-3714
2,699
Gerald
Lee
505-555-5540
564-555-4225
2,700
Larry
Lee
763-555-1388
432-555-3768
2,701
Willie
Wilson
660-555-4118
703-555-3173
2,702
Douglas
Gomez
426-555-6762
515-555-4762
2,703
Nicholas
Davis
666-555-6827
707-555-5616
2,704
Timothy
Clark
618-555-7372
312-555-1748
2,705
Gerald
Ortiz
665-555-1708
810-555-5203