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
2,047
Nicholas
Ortiz
210-555-8828
626-555-2464
2,048
Joshua
Baker
566-555-2858
834-555-5382
2,049
Abner
Williams
826-555-6006
522-555-8014
2,050
Jacob
Graham
684-555-2046
237-555-2805
2,051
Sandra
Black
411-555-1504
410-555-5671
2,052
Abby
Williams
662-555-4561
307-555-8421
2,053
Jacob
Hall
687-555-2776
316-555-3436
2,054
Samuel
Cruz
704-555-6047
864-555-4204