Thank you very much. This solution worked perfectly.
-mark
-----Original Message-----
From: David Sean Taylor [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 14, 2006 3:59 PM
To: Jetspeed Developers List
Subject: Re: Cancel Button
Mark McCullough wrote:
> I'm trying to implement a cancel button so that when the portlet goes into
> EDIT mode, the user can submit this button to return to their previous
> state
> in VIEW mode. I tried using javascript to make a simple back button, but
it
> caused problems. Thanks.
> -mark-
>
a quick grep on the demo app src:
<portlet:actionURL portletMode="view" var="myCancel"/>
<FORM ACTION="<%=myCancel%>" METHOD="POST">
<INPUT NAME="cancel" TYPE="submit"
VALUE="<%=myText.getString("cancel")%>">
</FORM>
-- or--
<a href="<portlet:actionURL windowState="normal" portletMode="view"
/>"><fmt:message key="prefview.label.InvokeMyAction"/></a>
or this could be done as a renderURL as well
<portlet:renderURL
windowState="normal"
portletMode="view"
var="viewLink">
<portlet:param name="invokeMessage" value="<%=viewMeParam%>"/>
</portlet:renderURL>
<a href="<c:out value="${viewLink}" />"><fmt:message
key="prefview.label.ViewMe"/></a>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
__________ NOD32 1.1756 (20060914) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]