[richfaces-issues] [JBoss JIRA] (RF-12130) missing javascript delimiter
Brian Leathem (JIRA)
jira-events at lists.jboss.org
Tue Apr 3 13:41:47 EDT 2012
[ https://issues.jboss.org/browse/RF-12130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Leathem updated RF-12130:
-------------------------------
Fix Version/s: (was: 4.2.1.CR1)
Description:
delimiter ";" is missing when JSObject (JSObject.java) is used to render js scripts.
For example with myfaces-2.1.6
{code}
<script type="text/javascript"><!--
new RichFaces.ui.Tooltip("j_id_5:j_id_8",{"ajax":{"incId":"1"} ,"target":"j_id_5:j_id_6","offset":[10,10] } )
//--></script></span></div></div>
<script><!--
(1==2)? 'a':'b';
//--></script>
{code}
When this sequence occurs in html markup everything is broken. javax.faces.ViewState cannot be updated (by js) after ajax response (by js) contains
was:
delimiter ";" is missing when JSObject (JSObject.java) is used to render js scripts.
For example with myfaces-2.1.6
<script type="text/javascript"><!--
new RichFaces.ui.Tooltip("j_id_5:j_id_8",{"ajax":{"incId":"1"} ,"target":"j_id_5:j_id_6","offset":[10,10] } )
//--></script></span></div></div>
<script><!--
(1==2)? 'a':'b';
//--></script>
When this sequence occurs in html markup everything is broken. javax.faces.ViewState cannot be updated (by js) after ajax response (by js) contains
> missing javascript delimiter
> ----------------------------
>
> Key: RF-12130
> URL: https://issues.jboss.org/browse/RF-12130
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component
> Affects Versions: 4.2.0.Final
> Environment: all
> Reporter: wojtek k
>
> delimiter ";" is missing when JSObject (JSObject.java) is used to render js scripts.
> For example with myfaces-2.1.6
> {code}
> <script type="text/javascript"><!--
> new RichFaces.ui.Tooltip("j_id_5:j_id_8",{"ajax":{"incId":"1"} ,"target":"j_id_5:j_id_6","offset":[10,10] } )
> //--></script></span></div></div>
> <script><!--
> (1==2)? 'a':'b';
> //--></script>
> {code}
> When this sequence occurs in html markup everything is broken. javax.faces.ViewState cannot be updated (by js) after ajax response (by js) contains
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list