Woonsan Ko wrote:
Hi Jan,

It reads in the javadoc of setRenderParameter(String, String) method,

"These parameters will be accessible in all sub-sequent render calls via the 
PortletRequest.getParameter call until a request is targeted to the portlet."

So, I think the render parameter value should remain in the sub-sequent render 
requests until the parameter is reset in the processAction() or processEvent() 
method of the portlet.
Also, I think you should set render parameter with empty string in processAction() if you want to invalidate the render parameter.
As the render parameters to be present on subsequent render (doView) requests *all* must be provided/set in a processAction(), simply *not* specifying (instead of specifying an empty string value which will still add the parameter but without value) probably is better.


Of course, to do this, you need to invoke an action URL targeting to the 
portlet.
Or you can create a new renderURL link within the portlet (e.g. with JSP taglib <portlet:renderURL>....</portlet:renderURL> or directly in Java using renderResponse.createRenderURL() ) and (again) specify *only* (but all) the render parameters which you want to use.



Regards,

Woonsan


--- On Tue, 6/16/09, Jan Kowalik <kowalik....@gmail.com> wrote:

From: Jan Kowalik <kowalik....@gmail.com>
Subject: portlet renderRequest parameter and page refreshing
To: "Jetspeed Users List" <jetspeed-user@portals.apache.org>
Date: Tuesday, June 16, 2009, 12:12 AM
Hi,

I set renderRequest parameter in processAction() method
with String
type message which I display via view.jsp.
When I refresh portal page this message still is displayed.
Does
renderRequest parameter stays and is sent again to the
doView() method
during page refresh ? How can I make it forget the
parameter after
single display ?


Regards

--
Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscr...@portals.apache.org
For additional commands, e-mail: jetspeed-user-h...@portals.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscr...@portals.apache.org
For additional commands, e-mail: jetspeed-user-h...@portals.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscr...@portals.apache.org
For additional commands, e-mail: jetspeed-user-h...@portals.apache.org

Reply via email to