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
5,998,283
Abner
Ortiz
768-555-5632
864-555-2056
5,998,284
Gerald
Johnson
468-555-6787
204-555-1816
5,998,285
Joshua
Black
357-555-5373
782-555-7163
5,998,286
Christopher
Lee
538-555-1854
335-555-7755
5,998,287
Jacob
Davis
832-555-5060
832-555-3680
5,998,288
Brianna
Jones
231-555-1305
676-555-4078
5,998,289
Willie
Fisher
424-555-2677
451-555-8433
5,998,290
Samuel
Lee
727-555-1173
680-555-7725