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
653,884
Jacob
Jones
306-555-1012
313-555-6755
653,885
Jacob
Gonzalez
468-555-8261
725-555-7563
653,886
Willie
Jones
673-555-2242
464-555-1718
653,887
Abby
Ortiz
451-555-8145
211-555-1334
653,888
Pamela
Hall
468-555-2028
280-555-5163
653,889
Hailey
Bailey
482-555-6071
415-555-4141
653,890
Jose
Jones
447-555-1250
467-555-1766
653,891
Samantha
Lee
457-555-8661
578-555-7514