willix
Jul 3rd, 2012, 06:23 PM
Hi
I'm trying to modify a flow scoped variable using an ajax call and a regular MVC @Controller. I've actually managed to accessed my flow variable after reading this article http://ytoh.wordpress.com/2011/09/07/flow-accessing-webflow-data-in-spring-mvc-controllers/
In short, you access your flow scopes variables with the following call
MutableAttributeMap flowAttributes = flowExecution.getActiveSession().getScope()
As stated at the end of the article, I can't modify my variable because Spring Webflow stores snapshots of the flow scoped object and you then access a deserialized copy of the data.
I've managed to bypass this 'limitation' by setting the max-execution-snapshots of my flow-execution-repository to 0. I thus believe I get the original copy and all's well.
My obvious question is now, is their a way to modify a flow scoped variable without setting the max-execution-snapshots to zero. In other words how do I access the original data in the last snapshot?
I'm trying to modify a flow scoped variable using an ajax call and a regular MVC @Controller. I've actually managed to accessed my flow variable after reading this article http://ytoh.wordpress.com/2011/09/07/flow-accessing-webflow-data-in-spring-mvc-controllers/
In short, you access your flow scopes variables with the following call
MutableAttributeMap flowAttributes = flowExecution.getActiveSession().getScope()
As stated at the end of the article, I can't modify my variable because Spring Webflow stores snapshots of the flow scoped object and you then access a deserialized copy of the data.
I've managed to bypass this 'limitation' by setting the max-execution-snapshots of my flow-execution-repository to 0. I thus believe I get the original copy and all's well.
My obvious question is now, is their a way to modify a flow scoped variable without setting the max-execution-snapshots to zero. In other words how do I access the original data in the last snapshot?