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
21,174
Maria
Rose
546-555-6773
882-555-8635
21,175
Douglas
Black
540-555-4041
404-555-8564
21,176
Larry
Black
664-555-3566
741-555-2155
21,177
Keith
Brown
850-555-3035
262-555-5082
21,178
Gerald
Lee
573-555-3438
816-555-7542
21,179
Joshua
Black
251-555-2158
510-555-6522
21,180
Keith
Lee
485-555-1703
388-555-7362
21,181
Hailey
Brown
473-555-8004
817-555-4533