> <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:[EMAIL PROTECTED]]
> Sent: Sunday, May 20, 2001 6:32 AM
> To: [EMAIL PROTECTED]
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

Reply via email to