Is the content which is being displayed in the portlets your own (as oppose
to
some public site which you cannot change)?

I use Jetspeed as a framework for my own apps. By creating features as
portlets, I allow user to pick and choose the features they would like to
use.
Because I control the HTML which will be displayed within the portlet, I
can do portlet-communication-type things. Specifically, I precede all my
links
with a portlet name constant. I have extended the HTML controller to look
through the parameters (pulled from the RunData object), and grab all the
parameters with the portlet's name as a prefix. I can then process those
parameters in my portlet.

For example, say I have 2 portlets. Portlet one is "MyLinks". It contains
a series of href's of my favorite links. When a user selects a link, I want
the URL contents to be displayed in a second portlet called "LinkView".
In "MyLinks" (using the standard HTMLportlet) all links point to the
Jetspeed URL, and the actual HTML-source is passed as a parameter
prepended with the target portlet name, ie "LinkView_http%3A%2f%2f
%2Enews%2Eyahoo%2Ecom". (Note the conversion of extended
characters into some url-safe format)

When the user selects a link, Jetspeed is called; this redraws the current
page. The LinkView portletController looks through the parameters and
finds the one beginning with "LinkView_". It strips off this prepended
string, then uses the remaining string as the URL actually fetched.

I am reciting this from memory, so I hope I have not skipped anything.
But at least I can assure you that it can work. The finess is all in the
portlet
controller.

Steve B.

----- Original Message -----
From: "Mani, Bharanidharan" <[EMAIL PROTECTED]>
To: "'Jetspeed Users List'" <[EMAIL PROTECTED]>
Sent: Friday, May 10, 2002 10:19 AM
Subject: RE: interportlet communication


> Glen,
>         Suppose that i have a link in one portlet. when you click that
link
> it should refresh or update the data on the other portlet... also
sometimes
> when i click on link on one portlet it should update the same portlet with
> the content from the link...
>
> hope i am clear..
>
> thanks
> bharani
>
> -----Original Message-----
> From: Glenn Golden [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 10, 2002 1:23 PM
> To: 'Jetspeed Users List'
> Subject: RE: interportlet communication
>
>
> Can you reply with a brief scenario that shows what it means to have
> "communication between two portlets"?
>
> Thanks!
>
> - Glenn
>
> > -----Original Message-----
> > From: Mani, Bharanidharan [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, May 10, 2002 1:07 PM
> > To: 'Jetspeed Users List'
> > Subject: interportlet communication
> >
> >
> > Hi ,
> >       I have two requirement. 1. I need to communication
> > between two portlet. 2. When i click on a link on one
> > portlet, it should display the content of the link in the
> > same portlet(i.e. refreshing the same portlet).
> >
> > I read that you can communicate between two portlets by
> > sharing the session object. But i am not sure how i should
> > proceed.. can someone tell me how to interportlet communication.
> >
> >
> > thanks
> > bharani
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:jetspeed-user-> [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]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to