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
707,793
Abner
Fisher
878-555-6583
354-555-7456
707,794
Brianna
Nelson
633-555-7206
564-555-3526
707,795
Jacob
Rose
522-555-8073
442-555-4307
707,796
Virginia
Smiith
767-555-4325
501-555-6712
707,797
Jacob
Smiith
817-555-1706
874-555-8654
707,798
Abby
Bailey
368-555-5051
337-555-8428
707,799
Virginia
Fisher
558-555-5156
768-555-7508
707,800
Virginia
Fisher
774-555-8500
623-555-2308