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
83,112
Kathleen
Ortiz
343-555-1626
666-555-6181
83,113
Keith
Lee
833-555-5284
608-555-7641
83,114
Kathleen
Gonzalez
860-555-2514
607-555-1334
83,115
Sarah
Brown
602-555-7648
275-555-8775
83,116
Timothy
Gomez
478-555-2514
268-555-1600
83,117
Larry
Williams
767-555-4000
387-555-3654
83,118
Willie
Gonzalez
652-555-1487
210-555-7623
83,119
Joshua
Rose
850-555-6334
408-555-6714