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,259
Linda
Fisher
262-555-7681
835-555-6624
3,474,260
Virginia
Smiith
503-555-1804
763-555-4730
3,474,261
Samuel
Williams
571-555-5185
560-555-3338
3,474,262
Virginia
Fisher
468-555-4285
322-555-6166
3,474,263
Larry
Rose
480-555-7402
445-555-7621
3,474,264
Samuel
Rose
777-555-7628
546-555-8450
3,474,265
Brianna
Murray
744-555-8785
823-555-2864
3,474,266
Samuel
Smiith
310-555-7812
235-555-8866