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
27,653
Gerald
Gonzalez
271-555-1324
717-555-6200
27,654
Abner
Lee
872-555-6430
338-555-1725
27,655
Timothy
Gonzalez
281-555-2543
812-555-7827
27,656
Maria
Hall
425-555-4233
264-555-1575
27,657
Gerald
Gonzalez
408-555-3078
274-555-4636
27,658
Emily
Gomez
385-555-7454
660-555-3565
27,659
Gerald
Rose
283-555-2701
787-555-7120
27,660
Debra
Gonzalez
230-555-4536
570-555-1725