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
720,286
Virginia
Black
771-555-6471
307-555-1472
720,287
Virginia
Bailey
676-555-3527
860-555-8143
720,288
Joshua
Donahue
741-555-4128
274-555-2750
720,289
Jose
Donahue
852-555-8562
736-555-8185
720,290
Sandra
Ortiz
651-555-7216
667-555-1137
720,291
Abby
Johnson
853-555-2302
563-555-1166
720,292
Keith
Murray
701-555-6831
504-555-2716
720,293
Timothy
Rose
528-555-2051
524-555-1606