[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-1233) Extend @Scope to work on member variables/properties

Jim Hazen (JIRA) jira-events at lists.jboss.org
Mon Apr 23 12:21:36 EDT 2007

    [ http://jira.jboss.com/jira/browse/JBSEAM-1233?page=comments#action_12360232 ] 
Jim Hazen commented on JBSEAM-1233:

@Out(scope=ScopeType.EVENT) does this already.  Or do I misunderstand the functionality you're looking for.

> Extend @Scope to work on member variables/properties
> ----------------------------------------------------
>                 Key: JBSEAM-1233
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1233
>             Project: JBoss Seam
>          Issue Type: Feature Request
>          Components: Core
>    Affects Versions: 1.1.6.GA
>            Reporter: Andrew
> I have a relate bug:
> http://jira.jboss.com/jira/browse/JBSEAM-903
> My purpose for this bug was mostly due to binding issues. There are times that I want to have the scope of a member variable to be different from the scope of the bean. Especially, if the bean is conversational and I want the field/property to have event scope. Instead of the proposed @InOut from the above bug, perhaps just extending @Scope would work:
> @Scope(ScopeType.EVENT)
> private MyVar myVar;
> Unlike @In and @Out, this scope would not put use the contexts to get and set values, but simply control the lifecycle of the variable. In this example, myVar could be set to null when the the variables of the bean are out-jected. As it stands, there is no other easy way that I know of to have a variable set to null at then end of a page request.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list