Nov 20th, 2007, 04:29 AM
Is there some way that, upon a certain criteria being met, that webflow will always forward to the same page?
For example, a user goes through a series of forms to signup for an account. Once they have completed, you don't want them to be able to perform actions from the previous pages.
So, once they complete, a flag is set. If they were then to use the back button and hit 'submit' on a previous page, webflow recognises the flag is set, and automatically forwards them back to the complete page, rather than processing the action.
Is there an obvoius way this can be done?
Nov 21st, 2007, 11:41 AM
Sorry to bump - but no ideas? I thought this would be quite a common problem...
Nov 23rd, 2007, 06:13 PM
actually you have to navigate the user into an end state. After reaching the partcular end-state the user can't go back, and submit the form for multiples times.
The only disadvantage of this kind of invalidation is that the user will receive an stack trace while hitting the back button (because the conversaton had been invalidated while reacing the end-state).
So you have to use some kind of exception handling which redirect the user to a particular page after a NoSuchConversatioException. (i.e. ExceptionHandler in Spring MVC)
Note: SWF 2.0 will allow you invalidate the continuation once you have entered any view-state. So you will be able to mark a view-state as "NotBackAble", after that the user can't go back after reaching the particular state.
This feature is scheduled for the third (and probably the last) milestone of SWF.