MyFaces Core
  1. MyFaces Core
  2. MYFACES-2650

chaining ajax onchange with existing onchange creates syntax error

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-beta-3
    • Fix Version/s: 2.0.0
    • Component/s: JSR-314
    • Labels:
      None
    • Environment:
      Javascript

      Description

      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>

      1. MyFaces_Test.war
        2.70 MB
        Ganesh Jung

        Activity

          People

          • Assignee:
            Jakob Korherr
            Reporter:
            Ganesh Jung
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development