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,455,110
Larry
Smiith
420-555-8114
684-555-4574
1,455,111
Nicholas
Ortiz
682-555-5778
223-555-4707
1,455,112
Jack
Murray
516-555-1345
788-555-6513
1,455,113
Samantha
Donahue
211-555-2130
828-555-7368
1,455,114
Linda
Jones
423-555-1565
374-555-6263
1,455,115
Samantha
Fisher
738-555-6606
681-555-3884
1,455,116
Maria
Ortiz
373-555-3218
663-555-6037
1,455,117
Debra
Fisher
384-555-8756
272-555-6316