WebSphere Portal Server - Re: Fire Action of Portlet on other page

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > June 2004 > Re: Fire Action of Portlet on other page





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Fire Action of Portlet on other page
Uwe Voigt

2004-06-20, 10:19 pm

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 messages 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 INPUTPARAMACCOUNTKEY parameter.. Does it's thing and adds the DONTRUNAGAIN attribute....
>
> On a refresh or link to page (without request param) the JSP runs as normal as the request param is NOT present...
>
> On a link to the page that does contain the request param will forward to the action 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 pres

ent...
>


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com