[ https://issues.apache.org/jira/browse/MYFACES-2811?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12887376#action_12887376 ]
Bruno Aranda commented on MYFACES-2811: --------------------------------------- Just to add a simple test case (uses the Primefaces growl component). I guess that would still fail with any component rendering its own <script> section, but it does not happen when using f:ajax (see test case 2). TEST CASE 1 (fails) <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.prime.com.tr/ui"> <f:view contentType="text/html"> <h:head> <title>Test case</title> </h:head> <h:body> <h:form id="testForm" prependId="false"> <p:growl id="growl" showDetail="true"/> <p:commandButton update="testForm"/> </h:form> </h:body> </f:view> </html> TEST CASE 2 (works) <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets"> <f:view contentType="text/html"> <h:head> <title>Test case</title> </h:head> <h:body> <h:form id="testForm" prependId="false"> <script type="text/javascript"> var lala; </script> <h:commandButton> <f:ajax event="click" render="testForm"/> </h:commandButton> </h:form> </h:body> </f:view> </html> > Partial Response still embedded CDATA possible > ---------------------------------------------- > > Key: MYFACES-2811 > URL: https://issues.apache.org/jira/browse/MYFACES-2811 > Project: MyFaces Core > Issue Type: Bug > Affects Versions: 2.0.1-SNAPSHOT > Reporter: Werner Punz > > We worked on this issue a while ago yet I got another error report in - Bruno > Aranda is reporting: > Hi, > I have a partial response that contains invalid syntax because CDATA > sections are nested. For example, in my app this code is generated in > the partial response: > <?xml version="1.0" > encoding="UTF-8"?><partialResponse><components><component><id>editorForm</id><output><![CDATA[<form > id="editorForm" name="editorForm" method="post" > action="/editor/curate/publication.jsf?conversationContext=2" > enctype="application/x-www-form-urlencoded"><span > id="growl"></span><script type="text/javascript">//<![CDATA[ > jQuery.gritter.add({title:'Publication saved',text:'AC: > EBI-2637354',image:'/editor/primefaces_resource/2.0.3-SNAPSHOT/primefaces/growl/assets/info.png?conversationContext=2',sticky:false}); > //]]></script> -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.