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
44,703
Samantha
Moore
201-555-3032
508-555-2827
44,704
Samantha
Cruz
872-555-2820
873-555-5402
44,705
Gerald
Nelson
613-555-3864
311-555-8073
44,706
Samuel
Gomez
238-555-7102
601-555-2225
44,707
Timothy
Nelson
475-555-6248
551-555-8644
44,708
Linda
Lee
380-555-4421
706-555-7412
44,709
Maria
Nelson
764-555-8875
364-555-8482
44,710
Christopher
Ortiz
782-555-6438
843-555-4701