-
1. Re: how communicate between portlets?
mholzner Oct 25, 2005 7:25 PM (in response to pedrosacosta)in 2.0 user an action request to set the state into the HttpSession , and have the second portlet pick it up there
in 2.2 there is a new feature called IPC (inter portlet communication) that allows for just that. there is an example in the core portal when you build it from cvs (until there is a binary download: remember: 2.2 is pre alpha, but it works great already) -
2. Re: how communicate between portlets?
bsmithjj Oct 26, 2005 10:02 AM (in response to pedrosacosta)Hello,
I would use the PortletSession approach - it will result in portlets that are more portable (and probably, simpler, easier to maintain, less prone to changes in the underlying inter-portlet-communication API's - which are going to be brand new, etc.).
Another design aspect for you to consider is this - Having portlet 1 depend on portlet 2 via inter-portlet communication API's can easily result in portlet implementations that break if one or more of the 'communicating' portlets is not available (or throws an exception).
Cheers