|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
portlet cachingI'm developing a portlet that basically imports a static webpage in and
displays it in a portlet so that all the portal styles get applied and everything works with skins and such. It is configured via a portlet preference. I would like to include functionality to specify whether the portlet should cache itself or execute the doView method each time the portal page loads. In most cases the caching is fine but I have an instance where I don't want it to cache. Can anyone tell me how to tell the portlet how to tell the portal not to cache it? Any help would be appreciated. Curtis --- You are currently subscribed to uportal-user@... as: lists@... To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/uportal-user |
|
|
Re: portlet cachingTurn off portal caching for the portlet in portlet.xml and implement
your own caching within the portlet using a Portlet Preference. ---- Cris J H Curtis Garman wrote: > I'm developing a portlet that basically imports a static webpage in and > displays it in a portlet so that all the portal styles get applied and > everything works with skins and such. It is configured via a portlet > preference. I would like to include functionality to specify whether > the portlet should cache itself or execute the doView method each time > the portal page loads. In most cases the caching is fine but I have an > instance where I don't want it to cache. > > Can anyone tell me how to tell the portlet how to tell the portal not > to cache it? Any help would be appreciated. > > Curtis > > --- > You are currently subscribed to uportal-user@... as: holdorph@... > To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/uportal-user > --- You are currently subscribed to uportal-user@... as: lists@... To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/uportal-user |
|
|
Re: portlet cachingChris,
I tried what you suggested and it seems to work once you are authenticated in the portal but what we really wanted to do is use this to display content on the pre-authenticated portal. It still seems to be caching the portlet on guest-lo. Will guest and guest-lo not honor the fact that I have explicitly told the portlet not to cache? Curtis Garman Web Programmer Information Technology Services Heartland Community College, SCB 2100 1500 W. Raab Rd. Normal, IL 61761 >>> Cris J Holdorph <holdorph@...> 7/23/2008 12:41 PM >>> Turn off portal caching for the portlet in portlet.xml and implement your own caching within the portlet using a Portlet Preference. ---- Cris J H Curtis Garman wrote: > I'm developing a portlet that basically imports a static webpage in and > displays it in a portlet so that all the portal styles get applied and > everything works with skins and such. It is configured via a portlet > preference. I would like to include functionality to specify whether > the portlet should cache itself or execute the doView method each time > the portal page loads. In most cases the caching is fine but I have an > instance where I don't want it to cache. > > Can anyone tell me how to tell the portlet how to tell the portal not > to cache it? Any help would be appreciated. > > Curtis > > --- > You are currently subscribed to uportal-user@... as: holdorph@... > To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/uportal-user > --- You are currently subscribed to uportal-user@... as: Curtis.Garman@... To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/uportal-user --- You are currently subscribed to uportal-user@... as: lists@... To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/uportal-user |
|
|
Re: portlet cachingI'm not sure what you mean that it doesn't work on the guest (non-logged
in) layout. Which part doesn't work? If you turn caching off in the portlet.xml, you should definitely be having your render (doView) method called every time the page renders, no matter if this is a guest view or logged in view. If that's not true, then it's a bug. ---- Cris J H Curtis Garman wrote: > Chris, > > I tried what you suggested and it seems to work once you are > authenticated in the portal but what we really wanted to do is use this > to display content on the pre-authenticated portal. It still seems to > be caching the portlet on guest-lo. Will guest and guest-lo not honor > the fact that I have explicitly told the portlet not to cache? > > Curtis Garman > Web Programmer > Information Technology Services > Heartland Community College, SCB 2100 > 1500 W. Raab Rd. > Normal, IL 61761 > >>>> Cris J Holdorph <holdorph@...> 7/23/2008 12:41 PM >>> > Turn off portal caching for the portlet in portlet.xml and implement > your own caching within the portlet using a Portlet Preference. > > ---- Cris J H > > Curtis Garman wrote: >> I'm developing a portlet that basically imports a static webpage in > and >> displays it in a portlet so that all the portal styles get applied > and >> everything works with skins and such. It is configured via a > portlet >> preference. I would like to include functionality to specify > whether >> the portlet should cache itself or execute the doView method each > time >> the portal page loads. In most cases the caching is fine but I have > an >> instance where I don't want it to cache. >> >> Can anyone tell me how to tell the portlet how to tell the portal > not >> to cache it? Any help would be appreciated. >> >> Curtis >> >> --- >> You are currently subscribed to uportal-user@... as: > holdorph@... >> To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/uportal-user > > --- > You are currently subscribed to uportal-user@... as: > Curtis.Garman@... > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/uportal-user > > --- > You are currently subscribed to uportal-user@... as: holdorph@... > To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/uportal-user > --- You are currently subscribed to uportal-user@... as: lists@... To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/uportal-user |
|
|
Re: portlet cachingChris,
The portal doesn't seem to be honoring the portal preference where I specify the time interval to cache. After doing a little googling, I ran across something on the wiki on http://www.ja-sig.org/wiki/display/UPM/04+Working+with+Portlets+in+uPortal that says "The optional Portlet caching settings mentioned in the Portlet Specification are not implemented at this time". This leads me to wonder if setting a portlets cache settings programmatically work in uPortal 2.6.1. I thought it was working before when authenticated but that no longer seems true...maybe it was just wishful thinking. Whatever I have the expiration-cache set to in my portlet.xml is what seems to be governing the portlet rendering. Any ideas? Curtis Garman Web Programmer Information Technology Services Heartland Community College, SCB 2100 1500 W. Raab Rd. Normal, IL 61761 >>> Cris J Holdorph <holdorph@...> 8/12/2008 1:14 PM >>> I'm not sure what you mean that it doesn't work on the guest (non-logged in) layout. Which part doesn't work? If you turn caching off in the portlet.xml, you should definitely be having your render (doView) method called every time the page renders, no matter if this is a guest view or logged in view. If that's not true, then it's a bug. ---- Cris J H Curtis Garman wrote: > Chris, > > I tried what you suggested and it seems to work once you are > authenticated in the portal but what we really wanted to do is use this > to display content on the pre-authenticated portal. It still seems to > be caching the portlet on guest-lo. Will guest and guest-lo not honor > the fact that I have explicitly told the portlet not to cache? > > Curtis Garman > Web Programmer > Information Technology Services > Heartland Community College, SCB 2100 > 1500 W. Raab Rd. > Normal, IL 61761 > >>>> Cris J Holdorph <holdorph@...> 7/23/2008 12:41 PM >>> > Turn off portal caching for the portlet in portlet.xml and implement > your own caching within the portlet using a Portlet Preference. > > ---- Cris J H > > Curtis Garman wrote: >> I'm developing a portlet that basically imports a static webpage in > and >> displays it in a portlet so that all the portal styles get applied > and >> everything works with skins and such. It is configured via a > portlet >> preference. I would like to include functionality to specify > whether >> the portlet should cache itself or execute the doView method each > time >> the portal page loads. In most cases the caching is fine but I > an >> instance where I don't want it to cache. >> >> Can anyone tell me how to tell the portlet how to tell the portal > not >> to cache it? Any help would be appreciated. >> >> Curtis >> >> --- >> You are currently subscribed to uportal-user@... as: > holdorph@... >> To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/uportal-user > > --- > You are currently subscribed to uportal-user@... as: > Curtis.Garman@... > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/uportal-user > > --- > You are currently subscribed to uportal-user@... as: > To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/uportal-user > --- You are currently subscribed to uportal-user@... as: Curtis.Garman@... To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/uportal-user --- You are currently subscribed to uportal-user@... as: lists@... To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/uportal-user |
|
|
Re: portlet cachingPortlet Preferences really has very little to do with Portlet Caching.
In the scenario I described, you're turning caching off, so whether the portal supports it or not, is irrelevant (unless it's lack of support was forcing caching to always be on). In the case of uPortal 2.6.1, I believe it is supported. The problem I believe you might be running into is the caching of portlet preferences. But I'd really need you to confirm this yourself. You can verify if it's truly a 'portal caching' problem (not honoring the portlet.xml portlet caching value of 0), by simply maximizing, minimizing, or moving the portlet. All of these should force the portlet to not be obtained from cache. If any of these things cause your portlet to redraw like you expect, then you might have found a portlet caching bug. On the other hand, if maxmizing the portlet doesn't affect the portlet any differently then just hitting reload on the page, then you are affected by something else. ---- Cris J H Curtis Garman wrote: > Chris, > > The portal doesn't seem to be honoring the portal preference where I > specify the time interval to cache. After doing a little googling, I > ran across something on the wiki on > http://www.ja-sig.org/wiki/display/UPM/04+Working+with+Portlets+in+uPortal > that says "The optional Portlet caching settings mentioned in the > Portlet Specification are not implemented at this time". This leads me > to wonder if setting a portlets cache settings programmatically work in > uPortal 2.6.1. I thought it was working before when authenticated but > that no longer seems true...maybe it was just wishful thinking. > Whatever I have the expiration-cache set to in my portlet.xml is what > seems to be governing the portlet rendering. Any ideas? > > Curtis Garman > Web Programmer > Information Technology Services > Heartland Community College, SCB 2100 > 1500 W. Raab Rd. > Normal, IL 61761 > >>>> Cris J Holdorph <holdorph@...> 8/12/2008 1:14 PM >>> > I'm not sure what you mean that it doesn't work on the guest > (non-logged > in) layout. Which part doesn't work? If you turn caching off in the > portlet.xml, you should definitely be having your render (doView) > method > called every time the page renders, no matter if this is a guest view > > or logged in view. If that's not true, then it's a bug. > > ---- Cris J H > > Curtis Garman wrote: >> Chris, >> >> I tried what you suggested and it seems to work once you are >> authenticated in the portal but what we really wanted to do is use > this >> to display content on the pre-authenticated portal. It still seems > to >> be caching the portlet on guest-lo. Will guest and guest-lo not > honor >> the fact that I have explicitly told the portlet not to cache? >> >> Curtis Garman >> Web Programmer >> Information Technology Services >> Heartland Community College, SCB 2100 >> 1500 W. Raab Rd. >> Normal, IL 61761 >> >>>>> Cris J Holdorph <holdorph@...> 7/23/2008 12:41 PM >>> >> Turn off portal caching for the portlet in portlet.xml and implement > >> your own caching within the portlet using a Portlet Preference. >> >> ---- Cris J H >> >> Curtis Garman wrote: >>> I'm developing a portlet that basically imports a static webpage in >> and >>> displays it in a portlet so that all the portal styles get applied >> and >>> everything works with skins and such. It is configured via a >> portlet >>> preference. I would like to include functionality to specify >> whether >>> the portlet should cache itself or execute the doView method each >> time >>> the portal page loads. In most cases the caching is fine but I > have >> an >>> instance where I don't want it to cache. >>> >>> Can anyone tell me how to tell the portlet how to tell the portal >> not >>> to cache it? Any help would be appreciated. >>> >>> Curtis >>> >>> --- >>> You are currently subscribed to uportal-user@... as: >> holdorph@... >>> To unsubscribe, change settings or access archives, see >> http://www.ja-sig.org/wiki/display/JSG/uportal-user >> >> --- >> You are currently subscribed to uportal-user@... as: >> Curtis.Garman@... >> To unsubscribe, change settings or access archives, see >> http://www.ja-sig.org/wiki/display/JSG/uportal-user >> >> --- >> You are currently subscribed to uportal-user@... as: > holdorph@... >> To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/uportal-user > > --- > You are currently subscribed to uportal-user@... as: > Curtis.Garman@... > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/uportal-user > > --- > You are currently subscribed to uportal-user@... as: holdorph@... > To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/uportal-user > --- You are currently subscribed to uportal-user@... as: lists@... To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/uportal-user |
| Free Forum Powered by Nabble | Forum Help |