[ 
https://issues.apache.org/jira/browse/MYFACES-2650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jakob Korherr resolved MYFACES-2650.
------------------------------------

    Fix Version/s: 2.0.0
       Resolution: Fixed

This issue is fixed. I just added escaping in buildBehaviorChain() to the 
userEventCode.

However this problem brought me to another issue: double escaping! Things like 
this won't work: new Function('myFunc', 'alert(\'test\');'). I'll create a new 
issue for this!

> chaining ajax onchange with existing onchange creates syntax error
> ------------------------------------------------------------------
>
>                 Key: MYFACES-2650
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2650
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.0-beta-3
>         Environment: Javascript
>            Reporter: Ganesh Jung
>            Assignee: Jakob Korherr
>             Fix For: 2.0.0
>
>         Attachments: MyFaces_Test.war
>
>
> combining onchange="alert('test') and <f:ajax render="myTest2" /> creates 
> "missing ) after argument list" when onchagne is triggered
> example:
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> <html xmlns="http://www.w3.org/1999/xhtml";
>       xmlns:f="http://java.sun.com/jsf/core";
>       xmlns:h="http://java.sun.com/jsf/html";
>       xmlns:ui="http://java.sun.com/jsf/facelets";>
>       <h:head></h:head>
>       <h:body>
>               <h:form id="myForm">
>               <h:inputText id="myTest1" value="#{myBean.test}" 
> onchange="alert('test')">
>                               <f:ajax render="myTest2" />
>               </h:inputText>
>                       <h:inputText value="#{myBean.test}" id="myTest2" />
>               </h:form>
>       </h:body>
> </html>

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

        

Reply via email to