I wrote one using the Registry APIs. It took about a
week. Look at the JavaDoc for Registry.
Here is some code from a .jsp that should give you
what you need. This code gets a list of all the
portlets degfined and adds them to an iterator.
// ***** Read the registry to get all portlet names
and entry information
// ***** The present implementation only displays
WebPage and IFrame portlets
Iterator iter =
Registry.get(Registry.PORTLET).listEntryNames();
Vector entries = new Vector();
while(iter.hasNext())
{
String PortletEntryName = (String)iter.next();
BasePortletEntry regEntry =
(BasePortletEntry)Registry.getEntry(Registry.PORTLET,
PortletEntryName);
if ( (regEntry!=null) &&
(!regEntry.isHidden()) &&
(!PortletEntryName.equals("WTPortletAdmin")) &&
(regEntry.getParent() != null) &&
((regEntry.getParent().equals("WebPagePortlet")) ||
(regEntry.getParent().equals("IFramePortlet"))) )
{
entries.add(regEntry);
}
}
%>
JJL.
--- Schnider Guido <[EMAIL PROTECTED]> wrote:
> Hi
>
> is there a portlet avialable that lets you create
> new instances of (for
> example RSS News) other portlets with the browser on
> the fly, ore has
> this to be done? We are actually looking for
> something like this.
>
> Any ideas or experiences?
>
> Thanks
>
> Guido
>
>
> --
> To unsubscribe, e-mail:
>
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>