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
5,515,614
Virginia
Allen
714-555-6177
482-555-5350
5,515,615
Sandra
Gomez
587-555-4071
322-555-8313
5,515,616
Linda
Williams
647-555-1704
628-555-6512
5,515,617
Linda
Davis
433-555-6710
574-555-5518
5,515,618
Brianna
Ortiz
737-555-3767
601-555-4534
5,515,619
Keith
Brown
517-555-5810
720-555-4161
5,515,620
Christopher
Graham
602-555-8708
474-555-3544
5,515,621
Keith
Williams
738-555-7700
536-555-1740