#resolved# ----- Original Message ----- From: "Raffaele Ragni" <[EMAIL PROTECTED]> To: "Jetspeed Users List" <[EMAIL PROTECTED]> Sent: Monday, July 15, 2002 11:31 AM Subject: Re: the .xreg files by code
> i'm trying to cast a type that seems isnt allowed to... > > Registry reg = > org.apache.jetspeed.services.Registry.get(org.apache.jetspeed.services.Regis > try.PORTLET); > RegistryEntry[] entries = reg.toArray(); > > instead of getting RegistryEntry[] i need PortletEntry[] > > ----- Original Message ----- > From: "Raffaele Ragni" <[EMAIL PROTECTED]> > To: "Jetspeed Users List" <[EMAIL PROTECTED]> > Sent: Friday, July 12, 2002 6:21 PM > 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:[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]>