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
69,146
Gerald
Graham
280-555-3365
336-555-2128
69,147
Jose
Bailey
744-555-4381
284-555-7028
69,148
Matthew
Fisher
826-555-8836
333-555-6305
69,149
Abner
Rose
442-555-4311
438-555-6501
69,150
Nicholas
Bailey
633-555-1616
515-555-8818
69,151
Jacob
Murray
312-555-4266
623-555-1001
69,152
Timothy
Graham
663-555-3260
641-555-8583
69,153
Brianna
Gonzalez
868-555-5606
743-555-4635