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
708,816
Joshua
Rose
830-555-2151
628-555-3511
708,817
Larry
Black
888-555-7606
820-555-6306
708,818
Debra
Wilson
340-555-8440
267-555-1337
708,819
Sarah
Fisher
321-555-6375
522-555-3557
708,820
Pamela
Gomez
461-555-8247
615-555-4846
708,821
Abner
Brown
747-555-2650
516-555-8158
708,822
Jack
Hall
866-555-1312
306-555-4504
708,823
Debra
Gonzalez
520-555-3544
231-555-7788