New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flow design incorrectly allows re-entrancy for @FlowScoped beans #1361
Comments
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented When I was reading your code I noticed new method getCurrentFlowDepth was created. I tried to do something simmilar about two months ago when I wanted to determine that I am back in the first flow of application (that I returned from all the nested flows back to the "root" flow). I noticed that when going back from nested flow's return node to method call node in calling flow, the method call node was executed with the nested flow still on the stack. The flow was removed from stack after entering VIEW node. That means that when having stack F1->F2->F3 and going F3->F2->F1->F2 the stack in method call node invoked in F1 when returned from F2 would be still F1, F2, F3. I know that many improvements were made on FacesFlows lately, I just wanted to point out that observation. Maybe it is not an issue after many fixes that were made on Faces Flows. With regards, |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented
That was Zhijun's idea, and it is what I recommend for JAVASERVERFACES-3680, but without the API change. Ed |
@glassfishrobot Commented |
@glassfishrobot Commented |
|
Taken from JAVASERVERFACES-3680
Affected Versions
[2.2]
The text was updated successfully, but these errors were encountered: