06-21-04 03:19 AM
i understand what its doing, thanks Gary
its a lot of code only to make things work as one would expect them to
work out of the box, right?
But originally there was another issue I wanted to solve. it is rather
portlet specific than related to Struts.
If you generate a link using the wps tags or the internal navloop how
would you manage to not only invoke the receiver portlets doView but its
actionPerformed similar to addAction on PortletURI. The parameter is
delivered to the struts action, but is there a way to append parameters
that the portal recognizes as portlet actions?
gpinkham wrote:
> this is what I ended doing in my JSP of the receiving portlet (the sender
is still the same!).. (This works but does not allow you to send message
s in the Action since it's in View Phase)
>
> <logic:present parameter="<%= PositionDetailConstants.INPUTPARAMACCOUNTKEY
%>">
> <logic:notPresent name="<%= PositionDetailConstants.DONTRUNAGAIN %>">
> <logic:forward name="begin"/>
> </logic:notPresent>
> </logic:present>
>
> The DONTRUNAGAIN Attribute is added in the action assigned to "begin"...
That way it only runs once per request...
>
> So basically what happens the 1st time is the action runs receives the INP
UTPARAMACCOUNTKEY parameter.. Does it's thing and adds the DONTRUNAGAIN attr
ibute....
>
> On a refresh or link to page (without request param) the JSP runs as norma
l as the request param is NOT present...
>
> On a link to the page that does contain the request param will forward to the acti
on as the request param IS present and the attribute is NOT present... The action
will run add the attribute and the jsp will run as normal because the attribute IS p
res
ent...
>
[ Post a follow-up to this message ]
|