I've never been truly successful in using the same class file for multiple portlets as 
it appears you are attempting here.  What works for me is simply using unique class 
files for each portlet.  So for your "Portlet_Test_AAA" portlet, use 
org.apache.jetspeed.portal.portlets.BugPortletAAA, and for "Portlet_Test_BBB" portlet, 
use org.apache.jetspeed.portal.portlets.BugPortletBBB, etc.

Just a thought



"Aurelien Pernoud" <[EMAIL PROTECTED]> wrote:

>
>I'm having a BIG trouble adding two portlets (both referencing an abstract
>portlet) in the same pane.
>
>Join is the buggyportlet src, and here's my local-portlets.xreg
><?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>
>    </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>
>    </portlet-entry>
></registry>
>
>When added in a pane (whatever conf), try minimize one, maximize another
>one, sometimes portlets simply disappear, sometimes it's ok, sometimes I
>have two times the same portlets (look at the id)... I don't get it.
>Look at the trace in tomcat, it does what it wants, when it wants. I've
>tried it on a freshly newly installed Tomcat 3.3.1 and Jetspeed 1.4b1, the
>bug is still there. Please tell me I'm not the only one :)
>Am I doing something wrong in the code ? in the xreg ????
>
>Thanks for help,
>Aurelien Pernoud
>

__________________________________________________________________
The NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to