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
3,474,724
Timothy
Gomez
326-555-1732
825-555-2428
3,474,725
Gerald
Black
578-555-4613
361-555-3864
3,474,726
Willie
Wilson
586-555-1380
364-555-2327
3,474,727
Pamela
Hall
512-555-2702
623-555-8575
3,474,728
Nicholas
Donahue
583-555-3478
411-555-8838
3,474,729
Pamela
Clark
622-555-2683
813-555-8133
3,474,730
Jack
Williams
241-555-6170
555-555-6768
3,474,731
Abby
Gonzalez
422-555-1068
666-555-5054