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
2,770,843
Jacob
Baker
465-555-4151
870-555-3206
2,770,844
Jacob
Bailey
200-555-6121
843-555-7425
2,770,845
Abner
Ortiz
555-555-4678
644-555-1043
2,770,846
Virginia
Ortiz
622-555-1530
257-555-7781
2,770,847
Virginia
Cruz
862-555-8764
560-555-7281
2,770,848
Linda
Brown
213-555-5527
515-555-2423
2,770,849
Pamela
Donahue
540-555-1026
583-555-7533
2,770,850
Maria
Baker
512-555-8486
617-555-1814