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
720,069
Maria
Williams
623-555-2580
642-555-2826
720,070
Abby
Moore
327-555-4650
618-555-8841
720,071
Samantha
Baker
537-555-8153
521-555-3872
720,072
Linda
Bailey
454-555-7416
386-555-4848
720,073
Jose
Wilson
675-555-8882
636-555-2856
720,074
Virginia
Black
264-555-6630
664-555-4663
720,075
Abner
Hall
588-555-1704
320-555-6343
720,076
Maria
Williams
401-555-1811
408-555-2356