Re: Fire Action of Portlet on other page
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Portal Server > Re: Fire Action of Portlet on other page




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: Fire Action of Portlet on other page  
Uwe Voigt


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:36 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register