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
13,176
Sandra
Donahue
755-555-3730
717-555-7167
13,177
Debra
Lee
680-555-4550
356-555-2170
13,178
Willie
Graham
534-555-1310
585-555-4417
13,179
Samantha
Murray
445-555-5740
658-555-8140
13,180
Samantha
Nelson
768-555-2181
855-555-2302
13,181
Nicholas
Smiith
878-555-8071
436-555-2770
13,182
Willie
Hall
758-555-5712
843-555-6873
13,183
Gerald
Baker
731-555-1645
720-555-6816