Why is my web page expired after Spring WebFlow redirects?
I'm using Spring WebFlow 2. Here's my situation.
View states: state1
, state2
Transitions: state1
goes to state2
if validation passes
state2 pops up a new window using the following:
<view-state id="state2" view="externalRedirect:${flowScope.myUrl}" redirect="true" />
I want to be abl开发者_StackOverflow社区e to continue my business at state1 after the window pops up. Normal flows don't seem to have a problem.
But here's when things go bad.
- I'm in
state1
. There's a form to fill out. - I fill in the form but it doesn't pass validation.
- I fill in the form again.
- I get to
state2
which just pops up a new window with the URL set in the source code. - The existing window goes back to the form.
- I fill out the form again, submit.
- IE says web page has expired.
Can anyone tell me what's going on please? Is this the right way to pop up windows? Thanks.
Since the flow in the pop-up and the main flow are independent, I would try to avoid having webflow involved in opening the pop-up by using a view-state and would simply try to handle that in HTML and JavaScript. That should avoid all adverse interference between the two flows.
精彩评论