You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Gal Hen <ga...@hotmail.com> on 2001/05/20 15:31:31 UTC
Persistance Service
Hi all,
i want to use a portlet that have multiply entries at the psml file, and
each entry have a different parameter name.
my question is how to retrieve at my portlet class the correct value of the
current parameter.
what i do at my helloworldportlet is -->
PersistenceService service = (PersistenceService)
ServiceFactory.getService(PersistenceService.class, aRunData, new
Object [] {this});
PersistenceService.Page page = service.getPage();
name = page.getAttribute("nick");
<entry parent="HelloWorld" type="ref">
<parameter name="nick" value="gal1"/>
</entry>
<entry parent="HelloWorld" type="ref">
<parameter name="nick" value="gal2"/>
</entry>
the problem is that all my portlets get the first parameter - i mean
"gal1".
thankyou Gal.
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
RE: Persistance Service
Posted by David Sean Taylor <da...@bluesunrise.com>.
> <entry parent="HelloWorld" type="ref">
> <parameter name="nick" value="gal1"/>
> </entry>
> <entry parent="HelloWorld" type="ref">
> <parameter name="nick" value="gal2"/>
> </entry>
For now, I recommend putting two entries in your portlets.xreg, like:
<portlet-entry type="ref" parent="HelloWorld" name="HelloWorld1">
<parameter name="nick" value="gal1"/>
<meta-info>
<title>Hello World 1</title>
</meta-info>
</portlet-entry>
<portlet-entry type="ref" parent="HelloWorld" name="HelloWorld2">
<parameter name="nick" value="gal2"/>
<meta-info>
<title>Hello World 2</title>
</meta-info>
</portlet-entry>
I would prefer that it works as with your example.
I believe that the problem is in services.portletcache.
But I don't know how to disable it (simply). The portlet cache is an area
that needs some work....
> -----Original Message-----
> From: Gal Hen [mailto:galcz@hotmail.com]
> Sent: Sunday, May 20, 2001 6:32 AM
> To: jetspeed-user@jakarta.apache.org
> Subject: Persistance Service
>
>
> Hi all,
>
> i want to use a portlet that have multiply entries at the
> psml file, and
> each entry have a different parameter name.
>
> my question is how to retrieve at my portlet class the
> correct value of the
> current parameter.
>
> what i do at my helloworldportlet is -->
>
> PersistenceService service = (PersistenceService)
> ServiceFactory.getService(PersistenceService.class,
> aRunData, new
> Object [] {this});
>
> PersistenceService.Page page = service.getPage();
> name = page.getAttribute("nick");
>
>
>
> <entry parent="HelloWorld" type="ref">
> <parameter name="nick" value="gal1"/>
> </entry>
> <entry parent="HelloWorld" type="ref">
> <parameter name="nick" value="gal2"/>
> </entry>
>
>
>
> the problem is that all my portlets get the first parameter - i mean
> "gal1".
>
> thankyou Gal.
>
> ______________________________________________________________
> ___________
> Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org