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
865,893
Gerald
Allen
852-555-4202
640-555-5060
865,894
Samantha
Smiith
761-555-6588
458-555-4413
865,895
Samuel
Murray
440-555-2845
787-555-5227
865,896
Larry
Fisher
741-555-7621
871-555-6413
865,897
Gerald
Davis
450-555-7157
887-555-1008
865,898
Keith
Rose
485-555-2100
565-555-6053
865,899
Debra
Davis
588-555-3447
446-555-5820
865,900
Gerald
Murray
742-555-1274
416-555-8333