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
74,122
Gerald
Wilson
205-555-4588
870-555-8271
74,123
Sandra
Davis
540-555-7840
771-555-6834
74,124
Timothy
Nelson
242-555-2675
353-555-8776
74,125
Linda
Brown
742-555-1866
841-555-4801
74,126
Abby
Rose
462-555-5462
768-555-3620
74,127
Joshua
Moore
838-555-6405
404-555-5787
74,128
Nicholas
Lee
758-555-8064
388-555-6715
74,129
Sandra
Lee
300-555-8767
558-555-8753