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
776
Joshua
Nelson
772-555-8164
538-555-2210
777
Timothy
Davis
387-555-3411
281-555-3187
778
Debra
Ortiz
217-555-1534
615-555-8158
779
Sarah
Moore
264-555-1648
378-555-3170
780
Brianna
Ortiz
377-555-3618
748-555-1365
781
Joshua
Jones
701-555-4385
763-555-1814
782
Larry
Brown
846-555-3402
424-555-3060
783
Kathleen
Smiith
430-555-2151
588-555-8732