You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2009/05/15 07:13:53 UTC
svn commit: r775007 -
/myfaces/core/trunk_1.2.x/impl/src/main/java/org/apache/myfaces/context/servlet/FacesContextImpl.java
Author: lu4242
Date: Fri May 15 05:13:52 2009
New Revision: 775007
URL: http://svn.apache.org/viewvc?rev=775007&view=rev
Log:
MYFACES-2232 FacesConfig.getCurrentInstance and externalContext references should work before set application instance on facesContext init
Modified:
myfaces/core/trunk_1.2.x/impl/src/main/java/org/apache/myfaces/context/servlet/FacesContextImpl.java
Modified: myfaces/core/trunk_1.2.x/impl/src/main/java/org/apache/myfaces/context/servlet/FacesContextImpl.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk_1.2.x/impl/src/main/java/org/apache/myfaces/context/servlet/FacesContextImpl.java?rev=775007&r1=775006&r2=775007&view=diff
==============================================================================
--- myfaces/core/trunk_1.2.x/impl/src/main/java/org/apache/myfaces/context/servlet/FacesContextImpl.java (original)
+++ myfaces/core/trunk_1.2.x/impl/src/main/java/org/apache/myfaces/context/servlet/FacesContextImpl.java Fri May 15 05:13:52 2009
@@ -92,11 +92,11 @@
private FacesContextImpl(final ReleaseableExternalContext externalContext)
{
+ _externalContext = externalContext;
+ FacesContext.setCurrentInstance(this); //protected method, therefore must be called from here
_application = ((ApplicationFactory)FactoryFinder.getFactory(FactoryFinder.APPLICATION_FACTORY))
.getApplication();
_renderKitFactory = (RenderKitFactory) FactoryFinder.getFactory(FactoryFinder.RENDER_KIT_FACTORY);
- _externalContext = externalContext;
- FacesContext.setCurrentInstance(this); //protected method, therefore must be called from here
}
//~ Methods ------------------------------------------------------------------------------------