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
5,483,095
Matthew
Fisher
415-555-5307
541-555-3308
5,483,096
Debra
Jones
487-555-1306
567-555-4355
5,483,097
Samuel
Cruz
312-555-2351
845-555-3402
5,483,098
Sandra
Allen
750-555-6645
401-555-4783
5,483,099
Sarah
Graham
335-555-1866
261-555-8121
5,483,100
Virginia
Black
587-555-6546
555-555-4650
5,483,101
Kathleen
Smiith
566-555-1673
486-555-3286
5,483,102
Willie
Murray
743-555-6685
620-555-4423