File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Spring and the fly likes Spring Webflow - how to store a variable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring Webflow - how to store a variable" Watch "Spring Webflow - how to store a variable" New topic

Spring Webflow - how to store a variable

Greg Soulsby

Joined: Feb 01, 2011
Posts: 9
I have a problem with my dev environment triggering the same On Entry event to a View State twice. (Something to do with UrlReWrite but thats another matter. I think it is going to take ages to work out.)

Would like to do a quick hack in the mean time.

That is, test if the output of the On Entry event (which is currently going into a viewScope variable), has already been set. If so, return it gain, as it has to be the second time through. Make sense?

But how can I set a variable in the On Entry event that is visible the second time through? I tried passing in the viewScope variable that is sets but it is always null. I take it the viewScope variables are not visible inside an On Entry event POJO?

There must be a way, right?

I agree. Here's the link:
subject: Spring Webflow - how to store a variable
It's not a secret anymore!