Results 1 to 5 of 5

Thread: Urls in subflows.

  1. #1

    Default Urls in subflows.

    I've got some subflows that use GET to submit information in links. This means that I've hardcoded the URLs into the views and I can no longer use these subflows as a part of another flow that will have a different URL. Is there any way around this?

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, FL
    Posts
    2,794

    Default

    I'm a little confused. Flows aren't tied to a URL in an way--a flow controller is, but that's just a entry point to one or more flows. And you can have a single FlowController for your entire app--no one says you need one per top-level flow.

    The fact a flow is used as a subflow within one flow execution is transparent to clients. This is how a single "Flow" definition can be embedded into any other flow, or used as a top-level flow.
    Keith Donald
    Core Spring Development Team

  3. #3

    Default

    Consider if you had the following URL in a JSP view-state within a subflow:

    wizard1.html?_eventId=nextPage

    Now, if I wanted to use this same flow in wizard2, I'd be out of luck.

  4. #4
    Join Date
    Aug 2004
    Location
    Melbourne, FL
    Posts
    2,794

    Default

    That's not true though - what flow you're in is determined by the _flowExecutionId - not the request URL.

    So you could have wizard1.html?flowExecutionId=<whatever>&eventId=<w hatever> and actually be in a wizard2 flow or some other flow entirely (or a subflow) --- which is one reason we recommend to use one flow controller for the app when possible.

    I may be still missing what you're getting at...

    Keith
    Keith Donald
    Core Spring Development Team

  5. #5

    Default

    Oh, okay, that makes total sense now. I was hung up on thinking that the URL would have to stay the same throughout the entire process; I'm not sure why. Thanks a bunch for the quick and helpful responses to both of my questions.

Similar Threads

  1. Replies: 10
    Last Post: Jul 7th, 2008, 09:06 AM
  2. Replies: 7
    Last Post: Feb 8th, 2007, 05:50 AM
  3. Replies: 6
    Last Post: May 19th, 2006, 04:00 AM
  4. Replies: 1
    Last Post: Aug 16th, 2005, 10:13 AM
  5. Replies: 1
    Last Post: Jul 9th, 2005, 12:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •