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
18,849
Jack
Smiith
226-555-2281
367-555-8774
18,850
Virginia
Bailey
246-555-6080
650-555-7387
18,851
Abner
Donahue
856-555-8151
513-555-3847
18,852
Christopher
Johnson
468-555-6305
802-555-2374
18,853
Douglas
Black
671-555-7302
604-555-8356
18,854
Nicholas
Gomez
238-555-6275
788-555-7201
18,855
Brianna
Graham
477-555-4238
282-555-3756
18,856
Samantha
Gomez
673-555-5771
467-555-5384