Wicket 1.4 M3 - New and Noteworthy
The third milestone has arrived. Here are some of the more noteworthy things available in milestone build M3 (14 July 2008) which is now available for download
. See the build notes for details about bugs fixed and other changes.
General
A significant change from the earlier Wicket 1.4 milestone versions is that Component is no longer generified
. This means that Component and most of its subclasses in Wicket do not take a class-level type parameter. Some Component subclasses remain generified, such as
- Link
- FormComponent
- Form
- many repeater components such as RefreshingView, DataView, ListView
- Item, ListItem
To work around the get/setModel(Object) methods typing issue, "default" is prefixed to the property name in the old methods:
- getModel -> getDefaultModel
- setModel -> setDefaultModel
- getModelObject -> getDefaultModelObject
- setModelObject -> setDefaultModelObject
The generified components then provide their own, typed implementations of the old methods, for example
@SuppressWarnings("unchecked") public final T getModelObject() { return (T)getDefaultModelObject(); }
We feel that this might provide a good middle ground between being unable to add typing to IModel on one hand and a proliferation of unneeded typing information on modelless components on the other hand. Your feedback is appreciated!