[jboss-jira] [JBoss JIRA] Created: (JBPORTAL-1603) Way to multiplex events
Andrew Oliver (JIRA)
jira-events at lists.jboss.org
Thu Jul 19 20:34:50 EDT 2007
Way to multiplex events
-----------------------
Key: JBPORTAL-1603
URL: http://jira.jboss.com/jira/browse/JBPORTAL-1603
Project: JBoss Portal
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Affects Versions: 2.6 Final
Reporter: Andrew Oliver
When using the portal API it becomes apparent rapidly that you need a way to both send an event and allow it to bubble as well as send events to multiple targets. Even the example (http://anonsvn.jboss.org/repos/portal/trunk/core-samples/src/main/org/jboss/portal/core/samples/basic/event/PortletA.java) demonstrates this as the basic A portlet cannot maintain its own state in the radio button as well as send it to the B portlet (http://anonsvn.jboss.org/repos/portal/trunk/core-samples/src/main/org/jboss/portal/core/samples/basic/event/PortletB.java). This will result in application-scope session parameters throughout which is a kind of anti-pattern but the only way it is workable. The situation is made worse with two target portlets. It is possible that this is addressed in JSR-268, but at the moment there doesn't appear to be a good JBP solution to this.
Ideally I could do something like return sendNewAndOld(origEvent, newEvents[]); this might also be a "..." style method.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list