[ 
https://issues.apache.org/jira/browse/MYFACES-4045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15282434#comment-15282434
 ] 

Leonardo Uribe commented on MYFACES-4045:
-----------------------------------------

I can confirm for now the problem in 2.2.10. If there are two flows, A and B 
and you enter first to A and then to B and then you try to create a new A the 
code remove B and enter into the first A. It should create a new flow if you 
have entered to A through a flow call. 

> Review Faces Flow reentrant condition
> -------------------------------------
>
>                 Key: MYFACES-4045
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4045
>             Project: MyFaces Core
>          Issue Type: Task
>          Components: JSR-344
>            Reporter: Leonardo Uribe
>            Assignee: Leonardo Uribe
>
> Checking some documentation of JSF 2.3, I noticed the following text:
> "... Because Flow instances are immutable, yet the flow stack is per-user, 
> implementations must make allowance for flow scoped data (managed beans 
> declared to be FlowScoped and data stored in the Map returned by 
> getCurrentFlowScope()) to be fully re-entrant. For example, consider an 
> application with two flows, A and B, each with a single FlowScoped bean 
> MyBeanA and MyBeanB, respectively. Entry into flow A causes MyBeanA to become 
> active. Calling from A into B causes MyBeanB to become active. Calling back 
> into A causes a new instance of MyBeanA to become active, rather than 
> reactivating the earlier instance of MyBeanA. ..."
> I remember this condition was discussed at some point in time, but I'm not 
> sure if the current implementation supports that scenario, so it is better to 
> take a look at the code.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to