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
1,985
Abby
Williams
618-555-8175
538-555-4533
1,986
Maria
Johnson
261-555-2041
338-555-5103
1,987
Douglas
Hall
356-555-4712
645-555-4416
1,988
Linda
Nelson
733-555-3882
538-555-6611
1,989
Christopher
Moore
736-555-2500
785-555-7017
1,990
Christopher
Wilson
281-555-7313
678-555-1853
1,991
Jacob
Gomez
785-555-8315
807-555-8458
1,992
Brianna
Wilson
604-555-2782
333-555-5162