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
73,409
Larry
Fisher
712-555-3725
326-555-8688
73,410
Matthew
Brown
240-555-4728
674-555-2722
73,411
Samuel
Allen
625-555-5804
711-555-5038
73,412
Joshua
Wilson
232-555-2840
354-555-6820
73,413
Joshua
Cruz
387-555-8884
526-555-8166
73,414
Abby
Gonzalez
555-555-5512
212-555-2154
73,415
Samuel
Allen
763-555-2332
365-555-1125
73,416
Jacob
Hall
776-555-8713
338-555-2268