myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r1703039 - /myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/context/servlet/PartialViewContextImpl.java
Date Mon, 14 Sep 2015 19:31:03 GMT
Author: lu4242
Date: Mon Sep 14 19:31:03 2015
New Revision: 1703039

URL: http://svn.apache.org/r1703039
Log:
MYFACES-3992 f:ajax doesn't append javax.faces.ViewState back on re-render of form in stateless
view

Modified:
    myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/context/servlet/PartialViewContextImpl.java

Modified: myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/context/servlet/PartialViewContextImpl.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/context/servlet/PartialViewContextImpl.java?rev=1703039&r1=1703038&r2=1703039&view=diff
==============================================================================
--- myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/context/servlet/PartialViewContextImpl.java
(original)
+++ myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/context/servlet/PartialViewContextImpl.java
Mon Sep 14 19:31:03 2015
@@ -589,6 +589,15 @@ public class PartialViewContextImpl exte
                 writer.write(viewState);
                 writer.endUpdate();
             }
+            else if (viewRoot.isTransient())
+            {
+                //TODO: fix javascript side, so the field is not removed on ajax form update
+                writer.startUpdate(HtmlResponseStateManager.generateUpdateViewStateId(
+                    _facesContext));
+                writer.write("stateless");
+                writer.endUpdate();
+                //END TODO
+            }
             
             
             ClientWindow cw = _facesContext.getExternalContext().getClientWindow();



Mime
View raw message