Portlet.getInstance() will give you access to the instance parameters from the current 
profile's PSML Document.  It uses the portlet's unique id to find instance information 
within a PSML document.

Also, you can use the PersistenceManager class retrieve portlet instances outside of 
the portlet itself.

However, you will need a relatively current CVS snapshot to do this and to have access 
to the new persistence service, PersistenceManager and PortletInstance.

scott

> -----Original Message-----
> From: Raffaele Ragni [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 12, 2002 11:21 AM
> To: Jetspeed Users List
> Subject: Re: the .xreg files by code
> 
> mmh, but to retrieve the parameters too from the portlet it needs to be a
> BasePortletInfoEntry instead of BaseRegistryEntry, but i cant cast the
> type
> for that two. I've tried to do a listing of portlets too but with no
> result.
> 
> ----- Original Message -----
> From: "Weaver, Scott" <[EMAIL PROTECTED]>
> To: "'Jetspeed Users List'" <[EMAIL PROTECTED]>
> Sent: Thursday, July 11, 2002 6:36 PM
> Subject: RE: the .xreg files by code
> 
> 
> > Registry.getEntry(Registry.PORTLET,"Portlet Name");
> >
> > This should return the BaseRegistryEntry of the named portlet.
> >
> > Scott
> >
> > > -----Original Message-----
> > > From: Raffaele Ragni [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, July 11, 2002 10:56 AM
> > > To: Jetspeed Users List
> > > Subject: Re: the .xreg files by code
> > >
> > > oh, can you explain what you have done better please? i am trying to
> load
> > > a
> > > portlet, knowing the name only at runtime an to call a method inside
> it.
> > >
> > > ----- Original Message -----
> > > From: "Wimmer, Matthias" <[EMAIL PROTECTED]>
> > > To: "'Jetspeed Users List'" <[EMAIL PROTECTED]>
> > > Sent: Thursday, July 11, 2002 4:49 PM
> > > Subject: RE: the .xreg files by code
> > >
> > >
> > > > Ok, that sounds quite simple. I have a similar question:
> > > >
> > > > I succeeded in creating a portlet instance from of the registry
> > > information:
> > > >
> > > >    Entry   theEntry  = new Entry();
> > > >    theEntry.setParent( "MyPortlet" );
> > > >    Portlet thePortlet = PortletFactory.getPortlet( theEntry );
> > > >
> > > >
> > > > But I would rather like to create a portlet instance with a user's
> PSML
> > > > information. How can this be done?
> > > >
> > > >
> > > >
> > > > I am obliged to any response.
> > > >
> > > > Matthias Wimmer
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > > -----Original Message-----
> > > > > From: Weaver, Scott [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Thursday, July 11, 2002 10:22 AM
> > > > > To: 'Jetspeed Users List'
> > > > > Subject: RE: the .xreg files by code
> > > > >
> > > > >
> > > > > org.apache.jetspeed.services.Registry
> > > > >
> > > > > Registry.get(Registry.PORTLET)
> > > > >
> > > > > Scott
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: Raffaele Ragni [mailto:[EMAIL PROTECTED]]
> > > > > > Sent: Thursday, July 11, 2002 8:52 AM
> > > > > > To: Jetspeed Users List
> > > > > > Subject: the .xreg files by code
> > > > > >
> > > > > > Hi, i'm trying to get (by code, obviously) the list of the
> > > > > portlets and
> > > > > > their information (those ones in the .xreg files, included
> portlet
> > > > > > parameters) anyone can help?
> > > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > > > For additional commands, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > > >
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:   <mailto:jetspeed-user-
> > > [EMAIL PROTECTED]>
> > > For additional commands, e-mail: <mailto:jetspeed-user-
> > > [EMAIL PROTECTED]>
> >
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:jetspeed-user-
> [EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:jetspeed-user-
> [EMAIL PROTECTED]>

Reply via email to