Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-1265

Effect: JS error when "for" contains semicolon

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.2.0
    • Fix Version/s: 3.1.3, 3.2.0
    • Component/s: None
    • Labels:
      None

      Description

      <div id="my:text" style="width:100px;height:100px;background-color:lightgreen"> </div>

      <e:effect for="my:text" event="onmouseover" type="Fade" params="duration:ma"/>

      leads to JS error

        Gliffy Diagrams

          Activity

          Hide
          nbelaevski Nick Belaevski added a comment -

          resolved

          Show
          nbelaevski Nick Belaevski added a comment - resolved
          Hide
          ilya_shaikovsky Ilya Shaikovsky added a comment -

          Checked under demosite and built locally today jars

          Still have 2 errors:

          element has no properties
          _observeAndCache(null, "click", function(), false)a4j_3_2_0-SNAPSHO... (line 3003)
          observe(null, "click", function(), false)a4j_3_2_0-SNAPSHO... (line 3029)
          [Break on this error] if (element.addEventListener) {

          element has no properties
          [Break on this error] if (element.addEventListener) {

          May be something about facelets?

          my code is
          <rich:effect for="test:testpanel" event="onclick" type="Fade" />
          <rich:effect event="onclick" for="test:testpanel" type="Appear" params="delay:3.0,duration:0.5" />

          <h:form id="test">
          <h:panelGrid columns="3" columnClasses="cell">

          <rich:panel id="testpanel" styleClass="box">
          <f:facet name="header">Fade Effect</f:facet>
          <h:outputText value="Click to Activate" />
          </rich:panel>
          ....

          Show
          ilya_shaikovsky Ilya Shaikovsky added a comment - Checked under demosite and built locally today jars Still have 2 errors: element has no properties _observeAndCache(null, "click", function(), false)a4j_3_2_0-SNAPSHO... (line 3003) observe(null, "click", function(), false)a4j_3_2_0-SNAPSHO... (line 3029) [Break on this error] if (element.addEventListener) { element has no properties [Break on this error] if (element.addEventListener) { May be something about facelets? my code is <rich:effect for="test:testpanel" event="onclick" type="Fade" /> <rich:effect event="onclick" for="test:testpanel" type="Appear" params="delay:3.0,duration:0.5" /> <h:form id="test"> <h:panelGrid columns="3" columnClasses="cell"> <rich:panel id="testpanel" styleClass="box"> <f:facet name="header">Fade Effect</f:facet> <h:outputText value="Click to Activate" /> </rich:panel> ....
          Hide
          nbelaevski Nick Belaevski added a comment -

          Ok, just swap declarations Put effects after components you're attaching to

          Show
          nbelaevski Nick Belaevski added a comment - Ok, just swap declarations Put effects after components you're attaching to
          Hide
          ilya_shaikovsky Ilya Shaikovsky added a comment -

          Merge this with 3.1.x please. And then resolve to both versions.

          Show
          ilya_shaikovsky Ilya Shaikovsky added a comment - Merge this with 3.1.x please. And then resolve to both versions.

            People

            • Assignee:
              ayanul Aleksej Yanul
              Reporter:
              nbelaevski Nick Belaevski
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development