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,473,887
Willie
Ortiz
443-555-5177
663-555-7337
3,473,888
Debra
Nelson
264-555-2436
445-555-8106
3,473,889
Timothy
Graham
430-555-6272
237-555-8664
3,473,890
Sarah
Moore
505-555-2237
785-555-4832
3,473,891
Michael
Rose
341-555-5005
838-555-4371
3,473,892
Joshua
Gonzalez
425-555-3283
385-555-8040
3,473,893
Linda
Williams
835-555-6155
845-555-4682
3,473,894
Maria
Rose
286-555-6064
474-555-7726