myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r906324 - /myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java
Date Thu, 04 Feb 2010 02:24:31 GMT
Author: lu4242
Date: Thu Feb  4 02:24:31 2010
New Revision: 906324

URL: http://svn.apache.org/viewvc?rev=906324&view=rev
Log:
MYFACES-2533 FaceletViewDeclarationLanguage call StateManager.saveView() before write document

Modified:
    myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java

Modified: myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java?rev=906324&r1=906323&r2=906324&view=diff
==============================================================================
--- myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java
(original)
+++ myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java
Thu Feb  4 02:24:31 2010
@@ -1000,8 +1000,6 @@
     @Override
     public void renderView(FacesContext context, UIViewRoot view) throws IOException
     {
-        Object stateObj;
-        
         if (!view.isRendered())
         {
             return;
@@ -1047,10 +1045,6 @@
                         context.getExternalContext().getSession(true);
                     }
                     
-                    // Spec indicates that saveView() must be called before startDocument().
-                    
-                    stateObj = stateMgr.saveView(context);
-                    
                     // render the view to the response
                     writer.startDocument();
 
@@ -1072,6 +1066,7 @@
                         if (end >= 0)
                         {
                             // save state
+                            Object stateObj = stateMgr.saveView(context);
                             String stateStr;
                             if (stateObj == null)
                             {



Mime
View raw message