My advice:
- log the Bug in Bugzilla (ok, we don't fix these bugs as quickly as
possible but
I have some free time coming in the following week that will allow me to
do some
code fixing and that way your bug will not be forgotten).
- reactivate the cache
- workaround for the bug: define dummy parameters in your registry
defintions
to separate the instances:
<?xml version="1.0" encoding="UTF-8"?>
<registry>
<portlet-entry name="PortletTest" hidden="false" type="abstract"
application="false">
<media-type ref="html"/>
<classname>org.apache.jetspeed.portal.portlets.BugPortlet</classname>
</portlet-entry>
<portlet-entry name="Portlet_Test_AAAA" hidden="false" type="ref"
parent="PortletTest" application="false">
<media-type ref="html"/>
<classname>org.apache.jetspeed.portal.portlets.BugPortlet</classname>
<meta-info>
<title>Portlet AAAA</title>
<description>Buggy A</description>
</meta-info>
<parameter name="_dummy1" value="0" />
</portlet-entry>
<portlet-entry name="Portlet_Test_BBBB" hidden="false" type="ref"
parent="PortletTest" application="false">
<media-type ref="html"/>
<classname>org.apache.jetspeed.portal.portlets.BugPortlet</classname>
<meta-info>
<title>Portlet BBBB</title>
<description>Buggy B</description>
</meta-info>
<parameter name="_dummy2" value="1" />
</portlet-entry>
</registry>
It's ugly but it should fix your problem while the caching bug is squashed
:)
> -----Message d'origine-----
> De : Aurelien Pernoud [mailto:[EMAIL PROTECTED]]
> Envoy� : mercredi 16 octobre 2002 15:06
> � : 'Jetspeed Users List'
> Objet : RE: Getting Crazy...
>
>
> Well done, the cache is activated by default, I solved my issue with
> services.PortletFactory.enable.cache=false in jr.ps
>
> But now I find myself with another pb : every time I'm
> navigating on my
> portal, portlets are instanciated :-(((((
> (init and constructor tracing showed me this)
>
> So is the best solution right now is to create as many class
> as there are
> portlets, and then use instance type in xreg ? Cause I'm
> afraid of memory
> usage and response time with all portlets instanciated every time...
>
> Thx for your help,
> Aurelien
>
> > -----Message d'origine-----
> > De : Luta, Raphael (VUN) [mailto:[EMAIL PROTECTED]]
> > Envoy� : mercredi 16 octobre 2002 14:44
> > � : 'Jetspeed Users List'
> > Objet : RE: Getting Crazy...
> >
> >
> > Have you activated the portlet cache ? If so, can you try to
> > desactivate the
> > cache and
> > check if you still have this issue ?
> >
> > What you describe may be a bug in portlet cache left other
> > from the days
> > when portlet did
> > not have any unique ID and the cache was using the parameter
> > list/values to
> > identify
> > the instances...
> >
> > If this is indeed the issue, it should be pretty easy to fix.
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>