Announcement Announcement Module
Collapse
No announcement yet.
redirectOnPause question? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • redirectOnPause question?

    Code:
    	<flow:executor id="flowExecutor" registry-ref="flowRegistry">
    		<flow:repository type="continuation" />
    		<flow:execution-attributes>
    			<flow:alwaysRedirectOnPause value="true" />
    		</flow:execution-attributes>
    	</flow:executor>
    It works, PRG pattern is applied, no warning about post data when refreshing the page, a 302 is send.
    Although the url is missleading, its always one step behind the one which it should be - it this correct?

    URL: default.xml

    Navigating results in default.xml?_flowExecutionKey=....

    But shouldn't it be the name of the new "view" - which is list.xml=?_...
    More a cosmetic questions, as it works. Something i've missed?

    Torsten

  • #2
    You're using JSF, right? This is more an annoyance inherent to JSF than to SWF. You will find the same issue with standard JSF navigation. Theoretically though, when SWF does its redirect it has the opportunity to "fix" the URL as another value-add for JSF. Keith did some prototyping of this and talked of potentially including this feature in SWF 1.1.

    Check out his last comment here for a possible way to implement this with the current release through extending RequestParameterFlowExecutorArgumentExtractor:
    http://forum.springframework.org/showthread.php?t=37169

    -Jeremy

    Comment


    • #3
      Yeah i know this happens at JSF using forwards.
      Using redirects, URL is displayed correct - so i wondered

      But thx for the link, i'll take a look at it.

      Comment

      Working...
      X