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>
...
I use Primefaces, which is generating the script section inside the
partial response (in this case, the growl renderer). MyFaces wraps the
script content in a CDATA section. However, because the output section
itself has the CDATA this is provoking the problem. The agent thinks
that the first CDATA is closed when it reachs the end of the nested
CDATA, creating an invalid response.
Any ideas?
Bruno