Thank you very much. This solution worked perfectly.
-mark
Message
From: David Sean Taylor [mailto:david (AT) bluesunrise (DOT) com]
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"/>
<FRM ACTIN="<%=myCancel%>" METHD="PST">
<INPUT NAME="cancel" TYPE="submit"
VALUE="<%=myText.getString("cancel")%>">
</FRM>
-- 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: jetspeed-dev-unsubscribe (AT) portals (DOT) apache.org
For additional commands, e-mail: jetspeed-dev-help (AT) portals (DOT) apache.org
ND32 1.1756 (20060914) Information
This message was checked by ND32 antivirus system.
http://www.eset.com
To unsubscribe, e-mail: jetspeed-dev-unsubscribe (AT) portals (DOT) apache.org
For additional commands, e-mail: jetspeed-dev-help (AT) portals (DOT) apache.org