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
69,038
Michael
Jones
585-555-4510
614-555-4424
69,039
Matthew
Baker
600-555-6886
280-555-5067
69,040
Sarah
Wilson
775-555-3247
808-555-5651
69,041
Kathleen
Hall
580-555-2685
426-555-4423
69,042
Christopher
Jones
204-555-2603
585-555-8484
69,043
Larry
Gonzalez
342-555-4844
704-555-6774
69,044
Joshua
Ortiz
833-555-8042
745-555-7681
69,045
Kathleen
Johnson
337-555-7645
858-555-5516