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
24,025
Abby
Bailey
777-555-1642
546-555-3341
24,026
Willie
Allen
601-555-6414
842-555-4801
24,027
Abner
Rose
815-555-3315
484-555-5603
24,028
Samuel
Brown
835-555-5770
734-555-5102
24,029
Hailey
Rose
377-555-2112
513-555-7406
24,030
Keith
Jones
302-555-2767
537-555-4033
24,031
Jack
Gonzalez
800-555-1100
836-555-2477
24,032
Jack
Nelson
458-555-4522
622-555-8523