You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org> on 2008/03/27 18:43:24 UTC
[jira] Commented: (TAPESTRY-2303) Basic generics support should
apply to parameters of event handler methods as well as getters and setters
[ https://issues.apache.org/jira/browse/TAPESTRY-2303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582748#action_12582748 ]
Howard M. Lewis Ship commented on TAPESTRY-2303:
------------------------------------------------
Also, being able to say:
@Property
private T _entity;
would be nice though it may be too involved to accomplish.
> Basic generics support should apply to parameters of event handler methods as well as getters and setters
> ---------------------------------------------------------------------------------------------------------
>
> Key: TAPESTRY-2303
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2303
> Project: Tapestry
> Issue Type: Bug
> Affects Versions: 5.0.11
> Reporter: Howard M. Lewis Ship
>
> The current support for JDK Generics only applies to getter and setter methods.
> It would be very useful, for the same use cases where getters and setters are useful, to allow generics inside event handler methods.
> I.e.:
> public class GenericCRUD<T>
> {
> private T _entity;
> public T getEntity() { return _entity; }
> public void setEntity(T entity) { _entity = entity; }
> T onPassivate() { return _entity; }
> void onActivate(T entity) { _entity = entity; }
> }
> This would require integrating the basic generic support directly into ComponentClassTransformation.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org