Does this belong to web flow thing?

Travis Reeder <[EMAIL PROTECTED]> wrote:
inline:

On 11/8/05, Simon Kitching <[EMAIL PROTECTED]> wrote:
Travis Reeder wrote:
> I'm wondering if anyone has a generic way of putting a cancel button on
> forms to just go back a page?
>

A couple of ideas come to mind.

* You could use _javascript_ and object document.history to effectively
   "press the back button".

I don't like this because what if they cancel after a couple of invalid attempts.  Also, this wouldn't work if the last page was also a form submit (which is usually the case in jsf).

* You could define a custom navigation handler that keeps track of the
   necessary information. In fact, if the navigation handler stores the
   actions on a stack then it could just look for a special action
   string "nav:back" or similar, and if present use the top action on
   the stack. Don't know what the effects on component state would be
   though...

Marhias has implemented sequential state to support the back button so maybe a mix of these things could get the correct behaviour.  I'll wait to hear more ideas before trying anything.

Anyway, I'm interested in whatever you find out, as this is probably
fairly closely related to providing a clickable "breadcrumb trail" which
I need to do.

Regards,

Simon


Yahoo! FareChase - Search multiple travel sites in one click.

Reply via email to