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

  • Invalidate History

    Hi All
    I have a transition that I need to prevent backtracking to It. So I used
    history="invalidate"

    But When browser back button is used an exception was thrown

    org.springframework.webflow.execution.repository.F lowExecutionRestorationFailureException: A problem occurred restoring the flow execution with key
    'e1s4'

    So how to handle this problem ?

    Thanks

  • #2
    You can handle it with a servlet Filter. You can place a try / catch around

    Code:
    chain.doFilter(request, response);
    and catch the FlowExecutionRestorationFailureException, and maybe perform a redirect to some kind of error page.

    My error page for this warns the user that the browser back button and history are not allowed beyond that point. I provide a Start Over link to start over the main flow, and a Resume link which does a javascript history.forward().

    Comment


    • #3
      Thanks InverseFalcon for your reply.
      I found a solution for my problem, in which i made this transition forward to an end-state. This end-state forward the to the starting point of my application with no back

      <view-state ....>
      <transition on="NoBrowserBack" to="finish">
      <evaluate expression ..... />
      </transition>
      </view-state>

      <end-state id="finish" view="externalRedirect:/Aflow"/>

      check this Link: http://www.springsource.org/node/239

      Thanks

      Comment

      Working...
      X