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
82,864
Virginia
Moore
563-555-4317
333-555-4734
82,865
Timothy
Fisher
670-555-1401
218-555-3405
82,866
Christopher
Baker
620-555-5833
667-555-1548
82,867
Jacob
Smiith
346-555-3574
707-555-8704
82,868
Larry
Wilson
484-555-8442
272-555-4644
82,869
Willie
Jones
661-555-1261
260-555-4565
82,870
Sandra
Gomez
532-555-4366
566-555-8561
82,871
Maria
Nelson
203-555-4622
443-555-6216