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
19,469
Sarah
Gonzalez
287-555-6078
665-555-8475
19,470
Jose
Cruz
253-555-3287
600-555-1268
19,471
Emily
Nelson
516-555-1622
453-555-6887
19,472
Sandra
Gomez
263-555-2032
377-555-2703
19,473
Samuel
Jones
751-555-2337
746-555-3300
19,474
Jack
Wilson
514-555-8866
822-555-5717
19,475
Larry
Hall
860-555-5138
780-555-2676
19,476
Douglas
Williams
552-555-7376
465-555-3802