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,210,459
Brianna
Davis
705-555-2371
506-555-8157
3,210,460
Virginia
Smiith
762-555-3085
602-555-4870
3,210,461
Abby
Smiith
351-555-7576
874-555-7468
3,210,462
Abby
Fisher
687-555-4207
666-555-4515
3,210,463
Abby
Hall
746-555-7527
542-555-4286
3,210,464
Jose
Rose
701-555-1117
581-555-3261
3,210,465
Christopher
Smiith
834-555-2471
702-555-7101
3,210,466
Sandra
Nelson
208-555-7645
846-555-3412