[gatein-issues] [JBoss JIRA] Resolved: (GTNPORTAL-1719) UIComponent emitting UI event should be retreived via Event<> object
Khoi Nguyen (JIRA)
jira-events at lists.jboss.org
Fri Jan 7 05:23:19 EST 2011
[ https://issues.jboss.org/browse/GTNPORTAL-1719?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Khoi Nguyen resolved GTNPORTAL-1719.
------------------------------------
Fix Version/s: 3.2.0-GA
Resolution: Done
> UIComponent emitting UI event should be retreived via Event<> object
> --------------------------------------------------------------------
>
> Key: GTNPORTAL-1719
> URL: https://issues.jboss.org/browse/GTNPORTAL-1719
> Project: GateIn Portal
> Issue Type: Task
> Security Level: Public(Everyone can see)
> Reporter: Minh Hoang TO
> Assignee: Vu Viet Phuong
> Labels: portal-s45, worked
> Fix For: 3.2.0-GA
>
> Original Estimate: 4 hours
> Remaining Estimate: 4 hours
>
> In many implementations of EventListener in the UI Layer, i see code snippet analogous to this
> {code:java}
> public void execute(Event<UIWorkingWorkspace> event) throws Exception
> {
> UIPortalApplication uiApp = Util.getUIPortalApplication();
> UIWorkingWorkspace uiWorkingWS = uiApp.getChildById(UIPortalApplication.UI_WORKING_WS_ID);
> .....
> }
> {code}
> Here, to get the object emitting event, the top-level component UIPortalApplication is retrieved, then a search over children with ID is used. The event.getSource() should be used instead
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the gatein-issues
mailing list