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,474,073
Pamela
Allen
526-555-4180
401-555-8832
3,474,074
Larry
Wilson
243-555-1371
600-555-7401
3,474,075
Maria
Wilson
883-555-2634
578-555-8823
3,474,076
Hailey
Lee
626-555-8832
286-555-5813
3,474,077
Pamela
Black
521-555-7225
430-555-8634
3,474,078
Sarah
Allen
575-555-4415
821-555-6178
3,474,079
Samuel
Black
587-555-1261
567-555-5641
3,474,080
Hailey
Nelson
738-555-6786
822-555-8424