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,840,932
Jack
Gomez
800-555-1316
802-555-1534
3,840,933
Michael
Gomez
860-555-1844
322-555-8473
3,840,934
Willie
Gomez
728-555-3683
758-555-1072
3,840,935
Matthew
Lee
374-555-6055
435-555-8062
3,840,936
Hailey
Brown
225-555-1815
205-555-5154
3,840,937
Emily
Baker
676-555-1777
553-555-6323
3,840,938
Virginia
Moore
886-555-5375
237-555-5657
3,840,939
Virginia
Gonzalez
870-555-7670
470-555-4715