You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by gc...@apache.org on 2010/11/02 20:47:21 UTC

svn commit: r1030197 - /myfaces/trinidad/branches/1.2.12.3-branch/trinidad-api/src/main/java/org/apache/myfaces/trinidad/change/SessionChangeManager.java

Author: gcrawford
Date: Tue Nov  2 19:47:21 2010
New Revision: 1030197

URL: http://svn.apache.org/viewvc?rev=1030197&view=rev
Log:
TRINIDAD-1949 SessionChangeManager failed to apply changes with page incluldes

Modified:
    myfaces/trinidad/branches/1.2.12.3-branch/trinidad-api/src/main/java/org/apache/myfaces/trinidad/change/SessionChangeManager.java

Modified: myfaces/trinidad/branches/1.2.12.3-branch/trinidad-api/src/main/java/org/apache/myfaces/trinidad/change/SessionChangeManager.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/1.2.12.3-branch/trinidad-api/src/main/java/org/apache/myfaces/trinidad/change/SessionChangeManager.java?rev=1030197&r1=1030196&r2=1030197&view=diff
==============================================================================
--- myfaces/trinidad/branches/1.2.12.3-branch/trinidad-api/src/main/java/org/apache/myfaces/trinidad/change/SessionChangeManager.java (original)
+++ myfaces/trinidad/branches/1.2.12.3-branch/trinidad-api/src/main/java/org/apache/myfaces/trinidad/change/SessionChangeManager.java Tue Nov  2 19:47:21 2010
@@ -424,13 +424,18 @@ public class SessionChangeManager extend
   /**
    * Is the state restored by JSF state manager in this request. This is usually true if this is a
    *  postback request. Additionally check if the document tag created a document component, because
-   *  if this is the case, we are sure that there was no state restoration.
+   *  if this is the case, we are sure that there was no state restoration. 
    */
   private boolean _isStateRestored(FacesContext facesContext)
   {
-    boolean docCompCreated = Boolean.TRUE.equals(facesContext.getExternalContext().
-                                   getRequestMap().get(UIXComponentELTag.DOCUMENT_CREATED_KEY));
-    return (docCompCreated) ? false : RequestContext.getCurrentInstance().isPostback();
+    /*
+     * We will always return false for now. The reason is, if the page has a included fragment,
+     * and the fragment gets replaced during ppr, the changes inside the region will be lost.
+     */
+    return false;
+    //boolean docCompCreated = Boolean.TRUE.equals(facesContext.getExternalContext().
+    //                               getRequestMap().get(UIXComponentELTag.DOCUMENT_CREATED_KEY));
+    //return (docCompCreated) ? false : RequestContext.getCurrentInstance().isPostback();
   }  
 
   /**