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
654,907
Jacob
Donahue
507-555-7812
351-555-6455
654,908
Sandra
Lee
363-555-3573
577-555-7335
654,909
Christopher
Allen
338-555-3240
277-555-2304
654,910
Christopher
Ortiz
656-555-7385
734-555-3254
654,911
Pamela
Nelson
250-555-7338
716-555-4133
654,912
Samuel
Lee
885-555-6218
826-555-2308
654,913
Hailey
Lee
678-555-1686
405-555-6043
654,914
Hailey
Donahue
701-555-7706
385-555-7460