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,879
Linda
Rose
246-555-2178
516-555-4273
3,474,880
Hailey
Nelson
377-555-1166
760-555-8423
3,474,881
Linda
Williams
327-555-3833
605-555-7752
3,474,882
Sandra
Moore
571-555-7283
843-555-2428
3,474,883
Brianna
Moore
726-555-4287
221-555-7725
3,474,884
Jose
Davis
414-555-8273
243-555-2042
3,474,885
Keith
Smiith
705-555-7373
358-555-2212
3,474,886
Matthew
Davis
465-555-3684
234-555-1677