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

It works the first time but refuses to work on subsequent requests
because the framework decides to *not* invoke the struts action more
than once if it notices request equality. That makes it virtually unusable.
Gary, did you manage to invoke portlet action processing with such a
generated link? I experienced that only doView of the portlet is invoked
even though a parameter was appended to the request.

gpinkham wrote:
> This is what I did.. I assigned a unique name to a page in the portal.. then coded this in my portlet jsp...
>
> (wps:urlGeneration compositionNode="Struts_Receiver_Portlet" contentNode="Struts_Receiver_Page" portletWindowState="maximized")
> (wps:urlParam name="TESTPARAM" value="TEST" /)
> (A HREF="(%wpsURL.write(out);%)" style="text-decoration:none" **bean:write name="overviewFormBean" property="addressLinkName" /)1(/a)
> (/wps:urlGeneration)
>
> This generates a link to the page Struts_Reciever_Page and passes it a request paramter of TESTPARAM.. kinda like foo.html?TESTPARAM=test....
>
> What I really want is to pass it to directly to the action of Struts_Reciever_Portlet.... First time in my action class gets fired and I can check the request parameter.. 2nd and subsequent times in I only see the jsp page...
>
> GaRy....
>
> PS.. I replaced all the < and > with ( )

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com