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,923
Nicholas
Davis
526-555-6613
517-555-5802
1,924
Jack
Bailey
452-555-4306
624-555-7505
1,925
Larry
Brown
264-555-4325
300-555-7476
1,926
Emily
Cruz
381-555-1416
672-555-2168
1,927
Samuel
Bailey
288-555-5400
333-555-2748
1,928
Kathleen
Gonzalez
258-555-1147
502-555-8464
1,929
Jacob
Gomez
541-555-2636
446-555-1422
1,930
Willie
Fisher
351-555-4256
751-555-6752