> IT is possible to have the same portlet, with or without different
> parameter configuration, on in the same PSML, although their is a know
> problem with the customizer.  See

It is possible?
Thats news to me.
If you have two of the same portlet on one page, and you set different
parameters in the PSML, Jetspeed cannot distinguish between the two
portlets, and you will always get the first parameter:

    <entry type="ref" parent="PhotoPortlet">
        <parameter name="photo" value="/photos/one.png"/>
    </entry>
    <entry type="ref" parent="PhotoPortlet">
        <parameter name="photo" value="/photos/two.png"/>
    </entry>

Then in your portlet:

        String photo = getAttribute("photo", "/photos/Sample.jpg", runData);

Will also return the first entry.
That really sucks (as is stated in the comment in the source) :(


----- Original Message -----
From: "Paul Spencer" <[EMAIL PROTECTED]>
To: "Jetspeed Users List" <[EMAIL PROTECTED]>
Sent: Saturday, January 05, 2002 2:46 AM
Subject: Re: Many copy of same portlet with different config


> Ender,
> IT is possible to have the same portlet, with or without different
> parameter configuration, on in the same PSML, although their is a know
> problem with the customizer.  See
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5688
>
> A workaround to define MyPortlet_1 though MyPortlet_n.
>
> Paul Spencer
>
> [EMAIL PROTECTED] wrote:
>
> > Hi
> > Is possible to have many copy of same portlet with different config. For
example I have welcome portlet with config param hello = "Hello portlet 1"
and another with config param param hello= "Hello portlet 2" and two portlet
displayed same times?
> > One hacking method is to add same portlet with diffrent name but its
limited. If I want to add many copy
> > Ender
> >
> >
> > --------------------------------------------------------------------
> > mail2web - Check your email from the web at
> > http://mail2web.com/ .
> >
> >
> > --
> > 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]>
>
>



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

Reply via email to