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
3,163
Timothy
Moore
242-555-3867
786-555-3027
3,164
Christopher
Donahue
624-555-5283
417-555-6863
3,165
Jack
Graham
452-555-2483
204-555-1432
3,166
Maria
Williams
442-555-7750
676-555-2538
3,167
Douglas
Davis
873-555-3633
852-555-8472
3,168
Keith
Wilson
683-555-2100
565-555-5140
3,169
Virginia
Allen
703-555-1276
285-555-3512
3,170
Jose
Ortiz
768-555-4618
645-555-5355