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,811,451
Nicholas
Lee
732-555-3583
833-555-6704
3,811,452
Abner
Moore
232-555-7118
310-555-1534
3,811,453
Jacob
Gonzalez
310-555-6427
614-555-6678
3,811,454
Abner
Murray
610-555-1885
245-555-3635
3,811,455
Gerald
Johnson
881-555-2365
316-555-2806
3,811,456
Willie
Davis
485-555-4382
866-555-2074
3,811,457
Douglas
Wilson
780-555-4030
851-555-1855
3,811,458
Timothy
Williams
882-555-3670
544-555-1774