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,422,680
Keith
Gonzalez
700-555-5175
334-555-1763
3,422,681
Samantha
Williams
358-555-6447
513-555-3824
3,422,682
Emily
Nelson
866-555-2086
586-555-7134
3,422,683
Sandra
Moore
374-555-2778
888-555-2704
3,422,684
Willie
Murray
747-555-2203
505-555-1248
3,422,685
Willie
Ortiz
820-555-4708
673-555-2184
3,422,686
Hailey
Gonzalez
824-555-2672
227-555-6641
3,422,687
Samuel
Wilson
452-555-7277
401-555-1302