Which portlet class are you using? One from the distribution or a portlet
class of your own? I am using Jetspeed on an Intranet; one of the portlets
on the users home page is a summary of their daily schedule - this requires
an update every time the page is refreshed, ie, it cannot be cached. I'll
share with you our solution (though be warned that the PortletAPI
discussions may - or may not - alter this in the future)

Assuming you are using an existing portlet class, here is what I would
suggest. (I'll use RSSPortlet as an example):

- copy \src\java\org\apache\jetspeed\portal\portlets\RSSPortlet.java to
...\RSSCurrentPortlet.java
- Modify the RSSCurrentPortlet.java. Add the following method to the class.
    /* tells jetspeed not to cache this content*/
    public boolean isCacheable ( )
    {
        return false;
    }
- modify the jetspeedconfig.jcfg to use RSSCurrentPortlet instead of
RSSPortlet
- Run the build scripts to create your jar/war file(s).

Now you won't have to sacrifice the performance of the entire system to
support this single portlet! I had actually modified many of the portlets so
I can pass a parameter indicating whether the portlet should be cached.
(Basically, read the parameter in the init() method, then return that value
in the isCacheable() method rather than always returning false)

HTH,

Steve B.

----- Original Message -----
From: "John Menke" <[EMAIL PROTECTED]>
To: "Jetspeed" <[EMAIL PROTECTED]>
Sent: Sunday, February 18, 2001 8:26 PM
Subject: Portlets not refreshing


> I have a portlet that needs to display current information and I need to
> make the refresh rate low.  I have changed the default to 60 from 3600,
but
> nothing seems to get my content to refresh.  Am I going about this in the
> correct manner?
>
>
>
>
>
>
>
>
>
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/jetspeed@list.working-dogs.com/>
> List Help?:          [EMAIL PROTECTED]



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/jetspeed@list.working-dogs.com/>
List Help?:          [EMAIL PROTECTED]

Reply via email to