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
5,560,688
Matthew
Graham
387-555-3663
258-555-2805
5,560,689
Samuel
Bailey
756-555-6685
201-555-5061
5,560,690
Willie
Williams
418-555-4477
816-555-7170
5,560,691
Larry
Williams
631-555-4040
460-555-7656
5,560,692
Joshua
Smiith
254-555-1283
224-555-5482
5,560,693
Samuel
Murray
678-555-8412
600-555-1532
5,560,694
Jose
Moore
350-555-1686
813-555-4407
5,560,695
Nicholas
Donahue
280-555-4032
711-555-4225