Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Won't Fix
-
Affects Version/s: EE-3.3.0.GA_P01
-
Fix Version/s: None
-
Component/s: Framework
-
Labels:None
-
Environment:n/a
-
Assignee Priority:P1
-
ICEsoft Forum Reference:
-
Salesforce Case Reference:
-
Affects:Documentation (User Guide, Ref. Guide, etc.)
Description
The @AllWindowsClosed annotation allows users to have a method called when all session windows and tabs have been closed, in order clear resources, trigger actions, etc.
The callback method, however, currently can't have any context. As it's called within another thread, it can't access the FacesContext directly. It would be useful if the AllWindowsClosedNotifier passed this in through the method parameter, if the method parameter exists.
The callback method, however, currently can't have any context. As it's called within another thread, it can't access the FacesContext directly. It would be useful if the AllWindowsClosedNotifier passed this in through the method parameter, if the method parameter exists.
Reverted injecting the FacesContext due to access restrictions on the ExternalContext. The workaround is to simply reference the necessary resource, such as the Session, etc. in a bean instance variable in a JSF thread, which will then be accessible to the AllWindowsClosed method handler outside of a JSF thread.
Wiki changes reverted.
Revision: 38586
Author: philip.breau
Date: October-11-13 3:00:12 PM
Message:
reverting Revision: 38294
Author: mircea.toma
Date: September-26-13 4:46:59 PM
as FacesContext must be set on the current ThreadLocalVariable for the ExternalContext to be used
Modified : /icefaces3/trunk/icefaces/core/src/main/java/org/icefaces/impl/application/WindowScopeManager.java