[jboss-jira] [JBoss JIRA] Resolved: (JBPORTAL-1603) Way to multiplex events

Julien Viet (JIRA) jira-events at lists.jboss.org
Fri Jul 20 05:36:47 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBPORTAL-1603?page=all ]

Julien Viet resolved JBPORTAL-1603.
-----------------------------------

    Resolution: Rejected

Actually the portal event redirection is a way to change the current control flow, not update state. So it is not really possible to multiplex events.

State update should rather be done using the navigational state context org.jboss.portal.api.navstate.NavigationalStateContext although the current interface does not have methods to do it (only the window state and mode).



> 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