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
599,510
Samuel
Gomez
645-555-2350
453-555-5618
599,511
Virginia
Brown
833-555-2565
730-555-7720
599,512
Abby
Gomez
552-555-6466
880-555-8340
599,513
Brianna
Davis
562-555-3067
476-555-1043
599,514
Hailey
Black
272-555-5873
460-555-2782
599,515
Willie
Davis
450-555-7102
221-555-5305
599,516
Matthew
Davis
361-555-7516
250-555-8285
599,517
Sandra
Brown
343-555-4713
635-555-8537