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
6,201
Brianna
Hall
301-555-7781
401-555-2634
6,202
Kathleen
Baker
556-555-3115
764-555-4811
6,203
Jack
Johnson
347-555-5887
670-555-2322
6,204
Jose
Williams
524-555-2177
421-555-2028
6,205
Virginia
Gonzalez
862-555-3581
581-555-8767
6,206
Brianna
Smiith
341-555-8538
662-555-6231
6,207
Christopher
Ortiz
637-555-5070
866-555-4873
6,208
Nicholas
Nelson
465-555-7137
814-555-2605