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".
* 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...
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