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
54,561
Sarah
Graham
621-555-7704
703-555-4630
54,562
Christopher
Hall
863-555-3246
473-555-2486
54,563
Pamela
Rose
467-555-3823
706-555-2760
54,564
Samuel
Gomez
766-555-5380
743-555-3256
54,565
Willie
Moore
587-555-4476
475-555-5540
54,566
Emily
Hall
400-555-7886
472-555-8542
54,567
Emily
Lee
200-555-4683
282-555-7322
54,568
Jack
Nelson
460-555-8522
322-555-4144