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,463,108
Emily
Davis
501-555-5071
406-555-3132
1,463,109
Sandra
Fisher
687-555-6074
622-555-2623
1,463,110
Sandra
Clark
754-555-2274
666-555-4185
1,463,111
Samantha
Baker
371-555-7825
441-555-4105
1,463,112
Jack
Williams
570-555-3718
318-555-6188
1,463,113
Maria
Fisher
540-555-7547
263-555-4736
1,463,114
Willie
Baker
352-555-5724
408-555-1448
1,463,115
Joshua
Hall
240-555-4741
570-555-8258