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
53,631
Brianna
Allen
412-555-3766
558-555-3086
53,632
Willie
Brown
202-555-3715
588-555-4737
53,633
Keith
Wilson
265-555-6322
728-555-1138
53,634
Abby
Gomez
647-555-5115
863-555-8823
53,635
Gerald
Williams
734-555-4615
820-555-6701
53,636
Douglas
Allen
561-555-5114
732-555-3517
53,637
Matthew
Rose
377-555-5784
360-555-5551
53,638
Joshua
Fisher
380-555-7123
335-555-1365