[
https://issues.apache.org/jira/browse/WICKET-4815?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Grigorov resolved WICKET-4815.
-------------------------------------
Resolution: Fixed
Fix Version/s: 6.2.0
Assignee: Martin Grigorov
I didn't add the helper.
I think we can make all components typesafe for Wicket 7. It will use JDK7 and
diamonds will help to keep the amount of typing not that big.
> Interface to mark components with type safe models
> --------------------------------------------------
>
> Key: WICKET-4815
> URL: https://issues.apache.org/jira/browse/WICKET-4815
> Project: Wicket
> Issue Type: New Feature
> Components: wicket
> Affects Versions: 6.1.1
> Reporter: Jesse Long
> Assignee: Martin Grigorov
> Priority: Minor
> Fix For: 6.2.0
>
>
> Could we please have an interface to tag components that support type safe
> default models (Think Link, GenericPanel etc). This would help enforce
> consistency across these types of components.
> Something like:
> public interface IGenericComponent<T>
> {
> IModel<T> getModel();
> void setModel(IModel<T> model);
> void setModelObject(T object);
> T getModelObject();
> }
> It may also be a good idea to implement a helper utility that does all the
> casting etc, and takes an additional Component argument per method.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira