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
719,573
Sandra
Wilson
870-555-8415
613-555-5742
719,574
Willie
Lee
767-555-3122
721-555-4560
719,575
Christopher
Black
262-555-3724
574-555-2367
719,576
Abner
Nelson
752-555-2642
387-555-4348
719,577
Brianna
Davis
487-555-1665
618-555-1100
719,578
Larry
Ortiz
773-555-5083
532-555-4188
719,579
Christopher
Rose
523-555-4686
528-555-1353
719,580
Larry
Gonzalez
214-555-3871
412-555-5325