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
1,021,854
Debra
Hall
220-555-8480
700-555-4205
1,021,855
Emily
Davis
506-555-1412
362-555-5270
1,021,856
Maria
Donahue
686-555-5271
606-555-8116
1,021,857
Virginia
Black
657-555-6388
218-555-3584
1,021,858
Virginia
Bailey
416-555-7650
710-555-1830
1,021,859
Emily
Hall
510-555-7238
248-555-8557
1,021,860
Larry
Allen
885-555-8815
265-555-1021
1,021,861
Jack
Smiith
383-555-1780
667-555-4635