Re: Getting portlets to interact? - Newbie....

Stefan Zoerner <[email protected]>
Newsgroups gmane.comp.jakarta.pluto.user
Message-ID <[email protected]>
Hi Tim!

Unfortunately, the Portlet 1.0 specification does not include events or 
messages between two portlets. Some vendors offer proprietary solutions 
here.

If the portlets are within the same portlet application, you have the 
option to share information between them via the portlet session. The 
latter has two scopes, one of them (application scope) is per user and 
portlet application.

It is possible to add/update something in the session with this scope 
during the processAction of the first portlet, and read/react with the 
second portlet within the render phase.

This proceeding has several disadvantages, but in your case, it may 
work, and it is standard compliant (i.e. your portlets will run and 
interact on all specification conformant portal servers).

I hope this helps,
     Stefan


Tim Robertson wrote:
> Hi,
> 
> I am getting my first hello world portlets running now
> (pluto 1.1.0 and spring2.0).
> 
> I have portlets running in view and edit mode, but am
> wondering the best way to fire events between
> portlets?
> 
> Suppose I have 2 portlets - one providing a tree view
> of the countries of the world, another that provides
> the capital city of a country.
> 
> I could get both working individually, but can someone
> please point me in the best direction for signalling
> to the "captial city portlet" when the tree in the
> other has changed.  I know that I ned to only signal
> this once or else the DB will be hit each time, but
> not sure how...
> 
> I am only at hour 6 of portlet work, so please
> understand that I know very little and any direction
> would be greatly appreciaed - no matter how trivial.
> 
> Thanks,
> 
> Tim
> (I know this is a pluto list but Im hoping the users
> may be able to help)
> 
> 
> 		
> ___________________________________________________________ 
> The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.