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,536,840
Joshua
Donahue
720-555-8477
546-555-4850
3,536,841
Sandra
Graham
340-555-1717
474-555-5685
3,536,842
Nicholas
Ortiz
680-555-2615
670-555-6175
3,536,843
Douglas
Moore
553-555-4024
856-555-2010
3,536,844
Timothy
Smiith
663-555-5378
771-555-7656
3,536,845
Pamela
Fisher
827-555-4450
615-555-6776
3,536,846
Pamela
Moore
668-555-4723
480-555-6341
3,536,847
Abby
Gonzalez
456-555-1688
658-555-7772