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
69,007
Brianna
Baker
664-555-8268
810-555-6072
69,008
Linda
Fisher
724-555-1482
682-555-3546
69,009
Samantha
Wilson
662-555-5428
222-555-7720
69,010
Christopher
Gomez
363-555-4774
280-555-2588
69,011
Hailey
Ortiz
888-555-3760
366-555-4383
69,012
Hailey
Lee
400-555-6123
418-555-5185
69,013
Willie
Cruz
723-555-7458
387-555-1751
69,014
Abby
Smiith
414-555-3131
604-555-7126