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,561,494
Maria
Cruz
873-555-1208
311-555-6377
5,561,495
Emily
Fisher
214-555-8132
258-555-4533
5,561,496
Willie
Baker
634-555-5700
505-555-4732
5,561,497
Nicholas
Graham
718-555-5851
706-555-5321
5,561,498
Pamela
Williams
626-555-5347
742-555-4004
5,561,499
Maria
Gonzalez
746-555-4611
321-555-3481
5,561,500
Jack
Lee
530-555-1882
858-555-3028
5,561,501
Timothy
Ortiz
443-555-6758
521-555-1220