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,070
Brianna
Gomez
273-555-1066
451-555-8676
654,071
Douglas
Nelson
818-555-1122
411-555-5717
654,072
Sandra
Rose
202-555-6270
542-555-4036
654,073
Brianna
Williams
643-555-7661
650-555-4064
654,074
Christopher
Black
557-555-5470
742-555-7620
654,075
Sarah
Moore
576-555-2857
676-555-8643
654,076
Samuel
Gonzalez
231-555-8653
676-555-5614
654,077
Kathleen
Moore
460-555-3167
441-555-6686