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,427,454
Linda
Gonzalez
537-555-8451
811-555-3850
3,427,455
Gerald
Smiith
541-555-5136
727-555-8188
3,427,456
Larry
Nelson
465-555-1810
251-555-6067
3,427,457
Willie
Allen
561-555-2832
401-555-8881
3,427,458
Joshua
Ortiz
361-555-2407
466-555-5683
3,427,459
Brianna
Graham
754-555-4386
332-555-7822
3,427,460
Kathleen
Allen
347-555-8327
420-555-2724
3,427,461
Abby
Graham
541-555-2321
856-555-2032