RichFaces
  1. RichFaces
  2. RF-1265

Effect: JS error when "for" contains semicolon

    Details

    • Type: Bug Bug
    • Status: Closed Closed (View Workflow)
    • Priority: Major Major
    • Resolution: Done
    • Affects Version/s: 3.2.0
    • Fix Version/s: 3.1.3, 3.2.0
    • Component/s: None
    • Security Level: Public (Everyone can see)
    • Labels:
      None
    • Similar Issues:
      Show 10 results 

      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

        Activity

        Hide
        Nick Belaevski
        added a comment -

        resolved

        Show
        Nick Belaevski
        added a comment - resolved
        Hide
        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
        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
        Nick Belaevski
        added a comment -

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

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

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

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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: