You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Balaji Vishwanath (JIRA)" <de...@myfaces.apache.org> on 2008/07/09 11:25:31 UTC
[jira] Created: (TRINIDAD-1151) PPR not working if cdata tags are
added to scripts
PPR not working if cdata tags are added to scripts
--------------------------------------------------
Key: TRINIDAD-1151
URL: https://issues.apache.org/jira/browse/TRINIDAD-1151
Project: MyFaces Trinidad
Issue Type: Bug
Components: Components
Affects Versions: 1.0.7-core
Environment: Windows 2k3
Reporter: Balaji Vishwanath
Priority: Critical
Hi
We have a ReponseWriter implementation which replaces the contents within the scripts of the rendered page with cdata tags to escape validation. The output of scripts for a trinidad page in doing so would be something like shown below
<script type="text/javascript">
/* <![CDATA[ */
_submitFormCheck();
/* ]]> */
</script>
<script type="text/javascript">
/* <![CDATA[ */
var _pprUpDatemode=false;function _adfspu(f,v,e,s,o){_pprUpdateMode=true;if(!o)o=new Object();if(e)o.event=e;if(s)o.source=s;_submitPartialChange(f,v,o);}
/* ]]> */
</script>
Having done this the PPR requests in that page no more works.
But the original output of scripts for the same trinidad page would be something like below, which works for the PPR request on that page.
<script type="text/javascript">_submitFormCheck();</script>
<script type="text/javascript">var _pprUpDatemode=false;function _adfspu(f,v,e,s,o){_pprUpdateMode=true;if(!o)o=new Object();if(e)o.event=e;if(s)o.source=s;_submitPartialChange(f,v,o);}</script>
Please let me know if there is any workaround so that I can still retain my escape tags in scripts and get the PPR working.
Regards
Balaji
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.