IntelliJ Java IDE
The moose likes Portals and Portlets and the fly likes RenderParameter problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Reply Bookmark "RenderParameter problem" Watch "RenderParameter problem" New topic
Author

RenderParameter problem

heba emara
Greenhorn

Joined: Mar 05, 2007
Posts: 3
Hi All,
I have a problem with clearing RenderParameters below is the scenrio that i am going through
First i am using JSR 168 on WebSphere Portal

In the processAction of the portlet i set a render parameter as following
response.setRenderParameter("paramname", "false");
i use the parameter in the view jsp as following
<% if(null != renderRequest.getParameter("paramname")
&& "true".equals(renderRequest.getParameter("paramname"))){ %>
Mainly i use the parameters to display error messages
My Problem is when i refresh the page or log out the page and return to it again the error messages are still due to the existance of the renderparameters
Thanks,
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4962

The render parameters should be purged along with the request, so a new request shouldn't have the parameters attached to it.

Are you sure that the issue isn't page caching, as opposed to an issue with the render parameters?

-Cameron McKenzie


Author of Hibernate Made Easy, What is WebSphere???, JSF 2.0 Made Easy and the SCJA Certification Guides
heba emara
Greenhorn

Joined: Mar 05, 2007
Posts: 3
Hi,
I checked the cache properties of the portal page containing the portlet and i found that cache option is setted to always expire the same for the portlet
 
 
subject: RenderParameter problem
 
Threads others viewed
request.getOptionValueCount() problem
Message Driven Beans
EL param and reguest.getParameter
url question
JBoss - multiple vagueness
IntelliJ Java IDE