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
38,875
Michael
Bailey
436-555-6477
347-555-8083
38,876
Maria
Baker
283-555-4860
755-555-2435
38,877
Jose
Lee
413-555-6401
623-555-6882
38,878
Joshua
Cruz
308-555-5572
771-555-6226
38,879
Jacob
Smiith
664-555-8531
720-555-1702
38,880
Willie
Wilson
454-555-1153
723-555-7315
38,881
Christopher
Graham
322-555-3307
258-555-5127
38,882
Hailey
Donahue
540-555-5857
358-555-7043