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,200,937
Willie
Baker
484-555-7646
477-555-8502
3,200,938
Douglas
Clark
626-555-3828
713-555-8017
3,200,939
Sandra
Brown
204-555-2622
236-555-7412
3,200,940
Michael
Williams
648-555-2733
726-555-2001
3,200,941
Timothy
Brown
304-555-6602
567-555-7433
3,200,942
Samantha
Wilson
200-555-8642
884-555-3068
3,200,943
Debra
Lee
643-555-6143
438-555-7816
3,200,944
Sarah
Smiith
645-555-6423
573-555-3881