myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r1671167 - /myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/context/servlet/PartialViewContextImpl.java
Date Fri, 03 Apr 2015 21:41:34 GMT
Author: lu4242
Date: Fri Apr  3 21:41:34 2015
New Revision: 1671167

URL: http://svn.apache.org/r1671167
Log:
MYFACES-3973 <partial-response> element does not contain an "id" attribute

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=1671167&r1=1671166&r2=1671167&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
Fri Apr  3 21:41:34 2015
@@ -469,6 +469,9 @@ public class PartialViewContextImpl exte
             writer.writePreamble("<?xml version=\"1.0\" encoding=\""+
                 (currentEncoding == null ? "UTF-8" : currentEncoding) +"\"?>");
             writer.startDocument();
+            
+            writer.writeAttribute("id", viewRoot.getContainerClientId(_facesContext),"id");
+            
             inDocument = true;
             _facesContext.setResponseWriter(writer);
             



Mime
View raw message