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,422,029
Timothy
Allen
877-555-3025
251-555-4364
3,422,030
Abby
Graham
431-555-7182
511-555-5440
3,422,031
Sandra
Johnson
660-555-7745
327-555-6176
3,422,032
Willie
Bailey
642-555-2118
621-555-7407
3,422,033
Jack
Allen
874-555-4107
564-555-7870
3,422,034
Larry
Black
238-555-5604
526-555-8185
3,422,035
Pamela
Donahue
834-555-6647
214-555-2554
3,422,036
Joshua
Lee
745-555-7338
811-555-4521