You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Werner Punz (Issue Comment Edited) (JIRA)" <de...@myfaces.apache.org> on 2011/09/29 15:32:45 UTC

[jira] [Issue Comment Edited] (MYFACES-3339) Ajax embedded CDATA Sequence lost on the server once an ajax refresh is triggered

    [ https://issues.apache.org/jira/browse/MYFACES-3339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13117200#comment-13117200 ] 

Werner Punz edited comment on MYFACES-3339 at 9/29/11 1:32 PM:
---------------------------------------------------------------

Ok a client side fix does not make sense there. This needs to be resolved on partial response writer level.
The myfaces ppr should introduce CDATA escapes aka the script should become:

<script type="text/javascript">
// <CDATA[[
    var a && b;
// ]]>
</script>

<update id="..."><CDATA[[...
<script="text/javascript">
// <!CDATA[[
// ]]]]><!CDATA[[>
</script>
]]></update>

This is perfectly viable since more than one cdata section can follow the update.

The CDATA Escaping code still is present in the partial response writer, so I assume the comment with the CDATA section must be lost earlier.


                
      was (Author: werpu):
    Ok a client side fix does not make sense there. This needs to be resolved on partial response writer level.
The myfaces ppr should introduce CDATA escapes aka the script should become:

<script type="text/javascript">
// <CDATA[[
    var a && b;
// ]]>
</script>

<update id="..."><CDATA[[...
<script="text/javascript">
// <!CDATA[[
// ]]]]><!CDATA[[>
</script>
]]></update>

This is perfectly viable since more than one cdata section can follow the update.

I remember that I once introduced such an escape code in our codebase, I wonder why it is gone.
I have to forward this to leo to check why we do not escape cdata sections anymore in our PPR.


                  
> Ajax embedded CDATA Sequence lost on the server once an ajax refresh is triggered
> ---------------------------------------------------------------------------------
>
>                 Key: MYFACES-3339
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3339
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.0.10-SNAPSHOT, 2.1.4-SNAPSHOT
>            Reporter: Werner Punz
>            Priority: Blocker
>
> One of my automated tests regarding render javax.faces.ViewRoot fails on chrome and ie, it works on all other browsers.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira