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
44,920
Douglas
Gomez
730-555-1725
427-555-2056
44,921
Maria
Nelson
868-555-7704
528-555-6837
44,922
Jacob
Clark
231-555-7877
477-555-1583
44,923
Larry
Allen
505-555-1032
461-555-4471
44,924
Matthew
Allen
346-555-5247
473-555-1556
44,925
Sarah
Williams
777-555-6580
261-555-1188
44,926
Abner
Smiith
674-555-3686
754-555-2365
44,927
Sarah
Williams
648-555-3475
540-555-7686