ICEfaces
  1. ICEfaces
  2. ICE-5215

JavaScript error in IE when inputtext onchange is in a panelPopup

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.2
    • Fix Version/s: 1.8.2-EE-GA, 1.8.3
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      ICEfaces 1.8 and IE

      Description

      When an inputRichtext is in a panelPopup, a JavaScript error is shown when the popup is closed. On the first loading of the popup there are no errors but as soon as the popup is closed it throws 2 or more JavaScript errors. After this the errors are shown on every loading/closing of the popup. These errors are not present in Firefox.

        Issue Links

          Activity

          Hide
          Tyler Lecouffe added a comment -

          I've create a clone of 4366 (not sure if that was the appropriate thing to do.. anyhow).

          I'm using v1.8.2/Tomcat 6.

          In IE8, in a popuppanel I have an inputText which has a valuechangelister/onchange event that fires a this.form.submit. Everything works great in FF.

          The error I get is:

          Webpage error details

          User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)
          Timestamp: Tue, 15 Dec 2009 14:38:00 UTC

          Message: Object doesn't support this property or method
          Line: 18
          Char: 1
          Code: 0
          URI: http://hpdev1.mcnair.local:8080/extranet/pages/admin/adminIndex.xhtml

          The IE debugger highlights the cause to be the snippet: "onmouseout="Ice.Menu.hideOnMouseOut('"

          Excerpt:
          <form action="javascript:;" class="iceFrm" enctype="application/x-www-form-urlencoded" id="logoutformid" method="post" onsubmit="return false;"><script id="logoutformidscript" type="text/javascript">$element(document.getElementById('logoutformid')).captureAndRedirectSubmit();</script><input name="logoutformid" type="hidden" value="logoutformid" /><input name="icefacesCssUpdates" type="hidden" value="" /><div id="logoutformid:stateSavingMarker" style="width:0px;height:0px;"><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="15" /><input name="javax.faces.RenderKitId" type="hidden" value="ICEfacesRenderKit" /></div>

          <div id="nav" style="margin: 58px 0px 0px 290px;"><div class="icePnlGrp exampleBox menuBarContainer" id="logoutformid:j_id18"><div class="iceMnuBar" id="logoutformid:menuBar" onmouseout="Ice.Menu.hideOnMouseOut('logoutformid:menuBar',event);"><div class="iceMnuBarItem" id="logoutformid:menuBar:introMenuId" onmouseout="Ice.Menu.hideOnMouseOut('logoutformid:menuBar',event);"><a class="iceLink" href="javascript:;" onclick="return false;"><span class="iceMnuBarItemLabel">Profile Administration</span></a></div>

          My guess is that ice-extras.js is the culprit?

          Show
          Tyler Lecouffe added a comment - I've create a clone of 4366 (not sure if that was the appropriate thing to do.. anyhow). I'm using v1.8.2/Tomcat 6. In IE8, in a popuppanel I have an inputText which has a valuechangelister/onchange event that fires a this.form.submit. Everything works great in FF. The error I get is: Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0) Timestamp: Tue, 15 Dec 2009 14:38:00 UTC Message: Object doesn't support this property or method Line: 18 Char: 1 Code: 0 URI: http://hpdev1.mcnair.local:8080/extranet/pages/admin/adminIndex.xhtml The IE debugger highlights the cause to be the snippet: "onmouseout="Ice.Menu.hideOnMouseOut('" Excerpt: <form action="javascript:;" class="iceFrm" enctype="application/x-www-form-urlencoded" id="logoutformid" method="post" onsubmit="return false;"><script id="logoutformidscript" type="text/javascript">$element(document.getElementById('logoutformid')).captureAndRedirectSubmit();</script><input name="logoutformid" type="hidden" value="logoutformid" /><input name="icefacesCssUpdates" type="hidden" value="" /><div id="logoutformid:stateSavingMarker" style="width:0px;height:0px;"><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="15" /><input name="javax.faces.RenderKitId" type="hidden" value="ICEfacesRenderKit" /></div> <div id="nav" style="margin: 58px 0px 0px 290px;"><div class="icePnlGrp exampleBox menuBarContainer" id="logoutformid:j_id18"><div class="iceMnuBar" id="logoutformid:menuBar" onmouseout="Ice.Menu.hideOnMouseOut('logoutformid:menuBar',event);"><div class="iceMnuBarItem" id="logoutformid:menuBar:introMenuId" onmouseout="Ice.Menu.hideOnMouseOut('logoutformid:menuBar',event);"><a class="iceLink" href="javascript:;" onclick="return false;"><span class="iceMnuBarItemLabel">Profile Administration</span></a></div> My guess is that ice-extras.js is the culprit?
          Hide
          Tyler Lecouffe added a comment -

          Ok... I believe I have solved my own problem, but I'm thinking the bug should still be addressed. My resolution was to use a partialSubmit="true" versus an onchange="this.form.submit"

          <ice:inputText size="5" partialSubmit="true" valueChangeListener="#

          {bean.ValueChangeEvent}

          "
          value="#

          {details.odNumberOfProducts}

          " immediate="true" id="quantityIdN"/>

          Tyler

          Show
          Tyler Lecouffe added a comment - Ok... I believe I have solved my own problem, but I'm thinking the bug should still be addressed. My resolution was to use a partialSubmit="true" versus an onchange="this.form.submit" <ice:inputText size="5" partialSubmit="true" valueChangeListener="# {bean.ValueChangeEvent} " value="# {details.odNumberOfProducts} " immediate="true" id="quantityIdN"/> Tyler
          Hide
          Ken Fyten added a comment -

          Please refrain from re-opening JIRAs that were previously marked Fixed and released. Open a new JIRA for any follow-up issues.

          Show
          Ken Fyten added a comment - Please refrain from re-opening JIRAs that were previously marked Fixed and released. Open a new JIRA for any follow-up issues.
          Hide
          Ken Fyten added a comment -

          Ah, I see what you did here. You cloned the previous issue. That's fine, just need to change the Affects Version and Fix Versions to reflect the new versions involved. I'll do that.

          Show
          Ken Fyten added a comment - Ah, I see what you did here. You cloned the previous issue. That's fine, just need to change the Affects Version and Fix Versions to reflect the new versions involved. I'll do that.
          Hide
          Joanne Bai added a comment -

          Verified with success during release testing cycle. Test app is available at repo\qa\trunk\Regression\ICE-5215

          Show
          Joanne Bai added a comment - Verified with success during release testing cycle. Test app is available at repo\qa\trunk\Regression\ ICE-5215

            People

            • Assignee:
              Unassigned
              Reporter:
              Tyler Lecouffe
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: