You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Louie Lansang <la...@mediaone.net> on 2002/01/24 08:17:35 UTC
How to call another portlet from within a portlet
Hello. I'm new to Jetspeed. And I would like to know if it's possible to call or display another portlet from within a portlet? In other words, I would like to click on a link from a portlet, and then display another portlet window that is maximized. How do I do that?
Thank you in advance for any hints.
-- Louie Lansang
RE: How to call another portlet from within a portlet
Posted by David Sean Taylor <da...@bluesunrise.com>.
ANother approach could be something like this:
/page/anotherPage?action=controls.Maximize&portlet=myPortlet
where you define a single-portlet PSML file in:
user
|
|--yourUser
|
|-html
anotherPage.psml
or you could do likewise with groups and roles, but the security is still
being worked out at this time
or simply define a page specifically for that single portlet, then you dont
need the maximize param
> -----Original Message-----
> From: Louie Lansang [mailto:lansang@mediaone.net]
> Sent: Sunday, January 27, 2002 11:29 PM
> To: Jetspeed Users List
> Subject: Re: How to call another portlet from within a portlet
>
>
> David,
> Thank you for your reply. I have to add....that "myPortlet" in <a
> href="portal?action=controls.Maximize&portlet=myPortlet" **must** exist in
> some pane/tab -- otherwise, I couldn't call it and display it. This means
> that I need to add all the portlets the user may call in some pane and
> somehow make that pane/tab hidden from the user. I wonder if
> there is a more
> direct way to call a portlet via url?
>
>
> ----- Original Message -----
> From: "David Sean Taylor" <da...@bluesunrise.com>
> To: "Jetspeed Users List" <je...@jakarta.apache.org>
> Sent: Thursday, January 24, 2002 11:09 AM
> Subject: Re: How to call another portlet from within a portlet
>
>
> > <a href="portal?action=controls.Maximize&portlet=myPortlet" ...
> >
> > where "myPortlet" is the name of your portlet you want to
> displayed max'd
> >
> > ----- Original Message -----
> > From: "Louie Lansang" <la...@mediaone.net>
> > To: <je...@jakarta.apache.org>
> > Sent: Wednesday, January 23, 2002 11:17 PM
> > Subject: How to call another portlet from within a portlet
> >
> >
> > Hello. I'm new to Jetspeed. And I would like to know if it's possible to
> > call or display another portlet from within a portlet? In other words, I
> > would like to click on a link from a portlet, and then display another
> > portlet window that is maximized. How do I do that?
> >
> > Thank you in advance for any hints.
> >
> > -- Louie Lansang
> >
> >
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@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>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: How to call another portlet from within a portlet
Posted by Louie Lansang <la...@mediaone.net>.
David,
Thank you for your reply. I have to add....that "myPortlet" in <a
href="portal?action=controls.Maximize&portlet=myPortlet" **must** exist in
some pane/tab -- otherwise, I couldn't call it and display it. This means
that I need to add all the portlets the user may call in some pane and
somehow make that pane/tab hidden from the user. I wonder if there is a more
direct way to call a portlet via url?
----- Original Message -----
From: "David Sean Taylor" <da...@bluesunrise.com>
To: "Jetspeed Users List" <je...@jakarta.apache.org>
Sent: Thursday, January 24, 2002 11:09 AM
Subject: Re: How to call another portlet from within a portlet
> <a href="portal?action=controls.Maximize&portlet=myPortlet" ...
>
> where "myPortlet" is the name of your portlet you want to displayed max'd
>
> ----- Original Message -----
> From: "Louie Lansang" <la...@mediaone.net>
> To: <je...@jakarta.apache.org>
> Sent: Wednesday, January 23, 2002 11:17 PM
> Subject: How to call another portlet from within a portlet
>
>
> Hello. I'm new to Jetspeed. And I would like to know if it's possible to
> call or display another portlet from within a portlet? In other words, I
> would like to click on a link from a portlet, and then display another
> portlet window that is maximized. How do I do that?
>
> Thank you in advance for any hints.
>
> -- Louie Lansang
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@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>
RE: How to call another portlet from within a portlet
Posted by Mark Orciuch <ma...@ngsltd.com>.
I think I understand now. So the following Maximize.jsp would be equivalent
to Maximize.vm, right?
============================================================================
=
<%@ taglib uri='/WEB-INF/templates/jsp/tld/template.tld' prefix='jetspeed'
%>
<%@ page import = "org.apache.jetspeed.services.PortletFactory" %>
<%@ page import = "org.apache.jetspeed.services.rundata.JetspeedRunData" %>
<%
JetspeedRunData rundata = (JetspeedRunData)request.getAttribute("rundata");
rundata.setMode("maximize");
%>
<jetspeed:portlet/>
============================================================================
=
Best regards,
Mark C. Orciuch
Next Generation Solutions, Ltd.
Voice: 219-365-0691
e-Mail: mark_orciuch@ngsltd.com
web: http://www.ngsltd.com
-----Original Message-----
From: David Sean Taylor [mailto:david@bluesunrise.com]
Sent: Friday, February 01, 2002 9:15 PM
To: Jetspeed Users List; mark_orciuch@ngsltd.com
Subject: Re: How to call another portlet from within a portlet
> That does not work if:
>
> services.TemplateService.default.extension=jsp
Yes, and other features (like customization) dont work either.
JSP hasn't quite caught up to Velocity yet (Im talking about the Jetspeed
templating implementations, not trying to start up yet another JSP v
Velocity dialog)
This doesn't keep you from using JSPs in portlets, just from using JSP as
your primary portal template (that builds the controllers, controls,
portlets).
So you could try using a special page just for displaying one portlet:
http://localhost:8080/jetspeed/portal/page/displayMyPortlet
(create a new PSML page just for displaying your one portlet)
The problem with using specific pages though, is that they are not yet
secure.
Hope to have a fix for that in a3
----- Original Message -----
From: "Mark Orciuch" <ma...@ngsltd.com>
To: "Jetspeed Users List" <je...@jakarta.apache.org>
Sent: Friday, February 01, 2002 1:00 PM
Subject: RE: How to call another portlet from within a portlet
> David,
>
> That does not work if:
>
> services.TemplateService.default.extension=jsp
>
> Is there a workaround?
>
>
> Best regards,
>
> Mark C. Orciuch
> Next Generation Solutions, Ltd.
> e-Mail: mark_orciuch@ngsltd.com
> web: http://www.ngsltd.com
>
>
> -----Original Message-----
> From: David Sean Taylor [mailto:david@bluesunrise.com]
> Sent: Thursday, January 24, 2002 11:10 AM
> To: Jetspeed Users List
> Subject: Re: How to call another portlet from within a portlet
>
>
> <a href="portal?action=controls.Maximize&portlet=myPortlet" ...
>
> where "myPortlet" is the name of your portlet you want to displayed max'd
>
> ----- Original Message -----
> From: "Louie Lansang" <la...@mediaone.net>
> To: <je...@jakarta.apache.org>
> Sent: Wednesday, January 23, 2002 11:17 PM
> Subject: How to call another portlet from within a portlet
>
>
> Hello. I'm new to Jetspeed. And I would like to know if it's possible to
> call or display another portlet from within a portlet? In other words, I
> would like to click on a link from a portlet, and then display another
> portlet window that is maximized. How do I do that?
>
> Thank you in advance for any hints.
>
> -- Louie Lansang
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> To unsubscribe, e-mail:
<ma...@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>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: How to call another portlet from within a portlet
Posted by David Sean Taylor <da...@bluesunrise.com>.
> That does not work if:
>
> services.TemplateService.default.extension=jsp
Yes, and other features (like customization) dont work either.
JSP hasn't quite caught up to Velocity yet (Im talking about the Jetspeed
templating implementations, not trying to start up yet another JSP v
Velocity dialog)
This doesn't keep you from using JSPs in portlets, just from using JSP as
your primary portal template (that builds the controllers, controls,
portlets).
So you could try using a special page just for displaying one portlet:
http://localhost:8080/jetspeed/portal/page/displayMyPortlet
(create a new PSML page just for displaying your one portlet)
The problem with using specific pages though, is that they are not yet
secure.
Hope to have a fix for that in a3
----- Original Message -----
From: "Mark Orciuch" <ma...@ngsltd.com>
To: "Jetspeed Users List" <je...@jakarta.apache.org>
Sent: Friday, February 01, 2002 1:00 PM
Subject: RE: How to call another portlet from within a portlet
> David,
>
> That does not work if:
>
> services.TemplateService.default.extension=jsp
>
> Is there a workaround?
>
>
> Best regards,
>
> Mark C. Orciuch
> Next Generation Solutions, Ltd.
> e-Mail: mark_orciuch@ngsltd.com
> web: http://www.ngsltd.com
>
>
> -----Original Message-----
> From: David Sean Taylor [mailto:david@bluesunrise.com]
> Sent: Thursday, January 24, 2002 11:10 AM
> To: Jetspeed Users List
> Subject: Re: How to call another portlet from within a portlet
>
>
> <a href="portal?action=controls.Maximize&portlet=myPortlet" ...
>
> where "myPortlet" is the name of your portlet you want to displayed max'd
>
> ----- Original Message -----
> From: "Louie Lansang" <la...@mediaone.net>
> To: <je...@jakarta.apache.org>
> Sent: Wednesday, January 23, 2002 11:17 PM
> Subject: How to call another portlet from within a portlet
>
>
> Hello. I'm new to Jetspeed. And I would like to know if it's possible to
> call or display another portlet from within a portlet? In other words, I
> would like to click on a link from a portlet, and then display another
> portlet window that is maximized. How do I do that?
>
> Thank you in advance for any hints.
>
> -- Louie Lansang
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> To unsubscribe, e-mail:
<ma...@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>
RE: How to call another portlet from within a portlet
Posted by Mark Orciuch <ma...@ngsltd.com>.
David,
That does not work if:
services.TemplateService.default.extension=jsp
Is there a workaround?
Best regards,
Mark C. Orciuch
Next Generation Solutions, Ltd.
e-Mail: mark_orciuch@ngsltd.com
web: http://www.ngsltd.com
-----Original Message-----
From: David Sean Taylor [mailto:david@bluesunrise.com]
Sent: Thursday, January 24, 2002 11:10 AM
To: Jetspeed Users List
Subject: Re: How to call another portlet from within a portlet
<a href="portal?action=controls.Maximize&portlet=myPortlet" ...
where "myPortlet" is the name of your portlet you want to displayed max'd
----- Original Message -----
From: "Louie Lansang" <la...@mediaone.net>
To: <je...@jakarta.apache.org>
Sent: Wednesday, January 23, 2002 11:17 PM
Subject: How to call another portlet from within a portlet
Hello. I'm new to Jetspeed. And I would like to know if it's possible to
call or display another portlet from within a portlet? In other words, I
would like to click on a link from a portlet, and then display another
portlet window that is maximized. How do I do that?
Thank you in advance for any hints.
-- Louie Lansang
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: How to call another portlet from within a portlet
Posted by David Sean Taylor <da...@bluesunrise.com>.
<a href="portal?action=controls.Maximize&portlet=myPortlet" ...
where "myPortlet" is the name of your portlet you want to displayed max'd
----- Original Message -----
From: "Louie Lansang" <la...@mediaone.net>
To: <je...@jakarta.apache.org>
Sent: Wednesday, January 23, 2002 11:17 PM
Subject: How to call another portlet from within a portlet
Hello. I'm new to Jetspeed. And I would like to know if it's possible to
call or display another portlet from within a portlet? In other words, I
would like to click on a link from a portlet, and then display another
portlet window that is maximized. How do I do that?
Thank you in advance for any hints.
-- Louie Lansang
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>