portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark McCullough" <mark.mccullo...@sivacorp.com>
Subject RE: Cancel Button
Date Thu, 14 Sep 2006 20:07:52 GMT
Thank you very much. This solution worked perfectly. 
-mark

-----Original Message-----
From: David Sean Taylor [mailto:david@bluesunrise.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"/>

<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: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


__________ NOD32 1.1756 (20060914) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com



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


Mime
View raw message