开发者

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.

  1. I'm in state1. There's a form to fill out.
  2. I fill in the form but it doesn't pass validation.
  3. I fill in the form again.
  4. I get to state2 which just pops up a new window with the URL set in the source code.
  5. The existing window goes back to the form.
  6. I fill out the form again, submit.
  7. 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜