myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r1795031 - /myfaces/core/branches/2.3.x/impl/src/main/java/org/apache/myfaces/context/servlet/PartialViewContextImpl.java
Date Sat, 13 May 2017 01:01:07 GMT
Author: lu4242
Date: Sat May 13 01:01:07 2017
New Revision: 1795031

URL: http://svn.apache.org/viewvc?rev=1795031&view=rev
Log:
small fix render eval scripts on ajax request

Modified:
    myfaces/core/branches/2.3.x/impl/src/main/java/org/apache/myfaces/context/servlet/PartialViewContextImpl.java

Modified: myfaces/core/branches/2.3.x/impl/src/main/java/org/apache/myfaces/context/servlet/PartialViewContextImpl.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.3.x/impl/src/main/java/org/apache/myfaces/context/servlet/PartialViewContextImpl.java?rev=1795031&r1=1795030&r2=1795031&view=diff
==============================================================================
--- myfaces/core/branches/2.3.x/impl/src/main/java/org/apache/myfaces/context/servlet/PartialViewContextImpl.java
(original)
+++ myfaces/core/branches/2.3.x/impl/src/main/java/org/apache/myfaces/context/servlet/PartialViewContextImpl.java
Sat May 13 01:01:07 2017
@@ -592,6 +592,17 @@ public class PartialViewContextImpl exte
                         }
                     }
                 }*/
+                
+                List<String> evalScripts = pvc.getEvalScripts();
+                if (evalScripts != null && evalScripts.size() > 0)
+                {
+                    for (String script : evalScripts)
+                    {
+                        writer.startEval();
+                        writer.write(script);
+                        writer.endEval();
+                    }
+                }
             }
 
             // invoke encodeAll() on every UIViewParameter in the view to 



Mime
View raw message