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
706,398
Linda
Gomez
401-555-6847
876-555-2386
706,399
Michael
Brown
737-555-1867
873-555-8535
706,400
Sandra
Black
741-555-3658
311-555-1347
706,401
Keith
Baker
468-555-4148
301-555-4303
706,402
Joshua
Gonzalez
831-555-8827
578-555-3557
706,403
Jose
Smiith
454-555-5116
673-555-1764
706,404
Jose
Smiith
256-555-6816
706-555-7141
706,405
Keith
Clark
875-555-8384
574-555-6162