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
48,934
Brianna
Lee
477-555-4438
454-555-6413
48,935
Samuel
Brown
701-555-7600
625-555-2122
48,936
Brianna
Wilson
703-555-5481
372-555-6026
48,937
Abby
Moore
777-555-5647
861-555-5812
48,938
Hailey
Murray
354-555-5451
615-555-7187
48,939
Gerald
Ortiz
617-555-1671
612-555-4366
48,940
Larry
Hall
267-555-1706
686-555-7730
48,941
Gerald
Davis
302-555-7033
426-555-7281