This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Spring and the fly likes Spring webflow popup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring webflow popup" Watch "Spring webflow popup" New topic
Author

Spring webflow popup

Marco Reuel Perez
Ranch Hand

Joined: Apr 16, 2009
Posts: 45
Hello Ranchers.

I am having hard time in getting a specific functionality implemented in Spring Webflow. My knowledge on Webflow is limited and I started working with it recently.

I have a flow A. I would like to initiate flow B from A in another window (essentially a popup). Also while doing that I want to pass an object from A to B. Is this possible? I don't want to initiate B as a subflow to A. The reason for that is B is just a popup, and when we close B nothing should happen in A (no transition).

B is like an orphan flow, but initiated from A and flow B in no way should affect A.

Also B just has an end-state. So pretty initiating B would be rendering an end-state. I am unable to get the "passing of data" to B from A part of this.

Any help, suggestions, greatly appreaciated.

Thanks in advance!

=Marco.


SCJP 6 - 91%
<><
Gerardo Tasistro
Ranch Hand

Joined: Feb 08, 2005
Posts: 362
Couldn't you just send that data as GET variables to the new flow?
Marco Reuel Perez
Ranch Hand

Joined: Apr 16, 2009
Posts: 45
No, I need to pass an object. Is there a way?
Gerardo Tasistro
Ranch Hand

Joined: Feb 08, 2005
Posts: 362
I guess you can store the object in session scope and have the web flow pick it up from there.
Trilochan Bharadwaj
Ranch Hand

Joined: Feb 02, 2009
Posts: 100
Use flash or conversation scope?

Trilochan
Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
Trilochan Bharadwaj wrote:Use flash or conversation scope?
Trilochan

It will not be available across multiple flows.


SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Trilochan Bharadwaj
Ranch Hand

Joined: Feb 02, 2009
Posts: 100
Care to give examples on flash scope? (I know that if we assume that conversation scope ends only when top level flow does, I still cant figure out why original poster doesn't call the pop-up as a sub-flow of this thing ... would make more sense to me), anyways, Spring source documentation says it clears off on every view render ... not very clear

Trilochan
Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
Actually, I'm wondering what is the use of flash scope. I guess it similar to flow scope except that variables in this scope will be cleared on every view render. Still, I don't know what that does exactly mean.
Trilochan Bharadwaj
Ranch Hand

Joined: Feb 02, 2009
Posts: 100
OK, did a little bit of digging, found a useful URL (documentation wasn't really clear):
Scopes

I'll try somethings over the weekend to find out, I'll ask or post my findings here, thanks for your time!

Trilochan.
Leonardo Terrao
Greenhorn

Joined: Oct 13, 2011
Posts: 15
Hello Guys!

I will continue this topic as I am in the same problem Marco Reuel and so far have not got a way to do this.

I'm using JSF with SWF 2.3

Someone who has managed to pass an object from one screen to the conditions that Marco Reuel cited using Spring Web Flow and can help me?

Thank you!
Leonardo Terrao.
 
jQuery in Action, 2nd edition
 
subject: Spring webflow popup
 
Similar Threads
Spring Web Flow 2 Web Development
How to integrate Spring WebFlow and Spring Security?
How do you pass command related parameters from page to page in Spring Web Flow
how to come enter web flow at a specific point
Design and Framework advice requested