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,472
Jack
Rose
275-555-2844
273-555-7186
3,200,473
Jack
Black
513-555-7331
203-555-4465
3,200,474
Joshua
Fisher
603-555-2432
617-555-8076
3,200,475
Linda
Wilson
865-555-2875
803-555-7204
3,200,476
Michael
Gomez
245-555-8280
281-555-8421
3,200,477
Linda
Bailey
336-555-7825
201-555-4352
3,200,478
Joshua
Brown
607-555-7535
236-555-7164
3,200,479
Timothy
Smiith
835-555-8072
243-555-8424