On Thu, Apr 23, 2009 at 11:18 PM, Robert Zeigler <robe...@scazdl.org> wrote:

> What about:
>
> .tml:
>
> <button onclick="window.location='${cancelURL}'; return
> false;">Cancel</button>
>
> .java:
>
> @Inject
> private ComponentResources resources;
>
> public String getCancelURL() {
>    return resources.createEventLink("cancel").toAbsoluteURL();//or you
> could inject the service for creating page links and create a regular page
> link...
> }
>
> public Object onCancel() {
>  //now you have a chance to do any cleanup work you want to do.
>  return "otherpage";
> }


Not horrible if Javascript is turned on.  If it's turned off, this'll
presumably submit the form.  I forgot to summarize that one, although I did
see a couple people recommending that as an option.

  - Geoffrey
-- 
Geoffrey Wiseman
http://www.geoffreywiseman.ca/

Reply via email to