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,209,498
Christopher
Rose
780-555-4836
411-555-1085
3,209,499
Samuel
Moore
276-555-1737
780-555-7482
3,209,500
Samantha
Cruz
821-555-1618
216-555-8221
3,209,501
Christopher
Gomez
850-555-8613
465-555-7561
3,209,502
Timothy
Lee
415-555-8135
340-555-4663
3,209,503
Christopher
Allen
487-555-5313
442-555-4354
3,209,504
Jack
Black
743-555-1047
646-555-1138
3,209,505
Keith
Williams
750-555-8370
862-555-3513