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
54,840
Samantha
Gonzalez
767-555-8534
855-555-2255
54,841
Virginia
Murray
878-555-8124
720-555-8754
54,842
Jose
Ortiz
372-555-8121
728-555-4410
54,843
Matthew
Allen
381-555-2078
366-555-4840
54,844
Larry
Williams
760-555-5811
548-555-7507
54,845
Christopher
Rose
626-555-1455
701-555-8636
54,846
Abby
Fisher
274-555-6217
456-555-6852
54,847
Larry
Lee
686-555-3681
217-555-2166