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
30,660
Larry
Allen
285-555-3661
846-555-4854
30,661
Jack
Cruz
503-555-7534
231-555-2856
30,662
Nicholas
Gomez
583-555-7247
265-555-3823
30,663
Hailey
Williams
413-555-4747
765-555-7570
30,664
Matthew
Gonzalez
605-555-5826
251-555-1842
30,665
Jose
Lee
851-555-6012
341-555-5774
30,666
Brianna
Lee
666-555-4785
353-555-2530
30,667
Hailey
Wilson
730-555-3384
623-555-7220