portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Sean Taylor <da...@bluesunrise.com>
Subject Re: Cancel Button
Date Thu, 14 Sep 2006 19:58:48 GMT
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"

-- 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:param name="invokeMessage" value="<%=viewMeParam%>"/>

<a href="<c:out value="${viewLink}" />"><fmt:message 

To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org

View raw message