You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by "Cabio, Michelle (Michelle)" <ca...@avaya.com> on 2002/04/15 21:20:36 UTC
linking portlets
David -
I know that to call a portlet from another portlet you do
base.addElement(portlet.getContent(aRunData));
return base;
However, in my portlet I have created a link, an html link ..(using ecs)
once the user clicks on that link...i would like that specific portlet
to be called and displayed on the same window pane. Is this possible??
What api allows me to do this??..
Michelle
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: linking portlets
Posted by David Sean Taylor <da...@bluesunrise.com>.
I believe you have 2 choices:
1. maximize the portlet
2. show the portlet in another psml page
For ex. 1, just try maximizing any portlet to get an idea of what the
url should look like.
On my system from today's build I maximized HelloVelocity from the
Turbine user:
http://localhost:8080/jetspeed/portal/page/default.psml/js_peid/04?actio
n=controls.Maximize
In order to do this from Java, I would use the new JetspeedLink.
JetspeedLink jsLink = JetspeedLinkFactory.getInstance();
jsLink.setPortletById(portlet.getID()).setAction("controls.Maximize")
For ex. 2, you'd have to create a new psml file, perhaps for the same
user, and put the one portlet on it, and then again use JetspeedLink to
create the link from Java:
JetspeedLink jsLink = JetspeedLinkFactory.getInstance();
jsLink.setPage("mypage")
Not sure how that would work for a group or role specific page, since I
cant find setGroup or setRole methods.
Nor can I find addQueryInfo or addPathInfo, in that case perhaps use
DynamicURI or JetspeedTemplateLink until the new JetspeedLink is
completed.
> -----Original Message-----
> From: Cabio, Michelle (Michelle) [mailto:cabio@avaya.com]
> Sent: Monday, April 15, 2002 12:21 PM
> To: Jetspeed Developers List
> Subject: linking portlets
>
>
>
>
> David -
>
> I know that to call a portlet from another portlet you do
> base.addElement(portlet.getContent(aRunData));
> return base;
>
> However, in my portlet I have created a link, an html link
> ..(using ecs)
> once the user clicks on that link...i would like that
> specific portlet to be called and displayed on the same
> window pane. Is this possible?? What api allows me to do this??..
>
> Michelle
>
>
> --
> To unsubscribe, e-mail:
> <mailto:jetspeed-dev-> unsubscribe@jakarta.apache.org>
> For
> additional commands,
> e-mail: <ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>