wood burning stoves 2.0*
The moose likes Portals and Portlets and the fly likes How to disable portlet caching in JSR168 portlets? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "How to disable portlet caching in JSR168 portlets?" Watch "How to disable portlet caching in JSR168 portlets?" New topic
Author

How to disable portlet caching in JSR168 portlets?

John Zwick
Ranch Hand

Joined: Mar 02, 2009
Posts: 34
I have 2 pages in my portal that points to the same portlet (but with different portlet preferences). I have an issue where the page gets cached and when you click between the 2 pages, it doesnt reload properly with the updated portlet preferences. Is there a way I can disable caching? This is in Websphere Portal 6.1.

Thanks!
Bhagat Singh Rawat
Ranch Hand

Joined: Apr 04, 2009
Posts: 93
John Zwick wrote:I have 2 pages in my portal that points to the same portlet (but with different portlet preferences). I have an issue where the page gets cached and when you click between the 2 pages, it doesnt reload properly with the updated portlet preferences. Is there a way I can disable caching? This is in Websphere Portal 6.1.

Thanks!


Use the following line in doView method:

and also can use<expiration-cache>0</expiration-cache> in yours portlet deployment descriptor.


Brainbench Java 2.0 Fundamentals, J2EE 1.4
http://www.brainbench.com/transcript.jsp?pid=8192792
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to disable portlet caching in JSR168 portlets?
 
Similar Threads
Weblogic portal Backing file, Preferences and portlet hide/undhide and different skins
Jboss portal preferences
Webpshere Portlets with JSF
Portlet Session Scope - Application or Portlet
Portlets And Portlet Preferences