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
127,938
Larry
Moore
845-555-7866
574-555-3277
127,939
Douglas
Wilson
745-555-3642
453-555-5381
127,940
Michael
Fisher
517-555-3784
748-555-3630
127,941
Michael
Wilson
462-555-6488
433-555-8423
127,942
Jack
Rose
738-555-8013
682-555-7167
127,943
Abby
Williams
287-555-2388
325-555-6672
127,944
Samuel
Bailey
402-555-6773
573-555-8081
127,945
Jack
Bailey
646-555-3126
423-555-6430