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
23,406
Brianna
Allen
736-555-2500
675-555-4677
23,407
Abner
Black
355-555-5072
776-555-6004
23,408
Larry
Gomez
682-555-8088
743-555-4468
23,409
Jose
Donahue
638-555-8502
750-555-3477
23,410
Jacob
Black
888-555-3143
667-555-5132
23,411
Willie
Ortiz
601-555-3774
742-555-8600
23,412
Christopher
Smiith
424-555-8561
840-555-8040
23,413
Sarah
Williams
630-555-8486
205-555-3354