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,998,531
Joshua
Graham
210-555-8465
557-555-4782
5,998,532
Abby
Gomez
248-555-3871
422-555-7614
5,998,533
Nicholas
Johnson
560-555-5424
366-555-6170
5,998,534
Larry
Wilson
588-555-3387
331-555-3748
5,998,535
Maria
Allen
475-555-2141
677-555-6430
5,998,536
Matthew
Davis
480-555-2731
273-555-3138
5,998,537
Emily
Jones
768-555-6238
682-555-4080
5,998,538
Virginia
Gonzalez
402-555-1876
343-555-5042