ICEfaces
  1. ICEfaces
  2. ICE-4669

Changing tabs caused "failed to insert element" error in IE

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.1
    • Fix Version/s: 1.8.2-RC1, 1.8.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      IE 6 & 7

      Description

      When changing tabs in a panelTabSet on a page with a command button, the following error is generated:

      [window.7xZl#1] : failed to insert element: <input class="iceCmdBtn headerButton" id="j_id15:cmdHdrHelp" name="j_id15:cmdHdrHelp" onblur="setFocus(&#39;&#39;);" onclick="openHelpWin(&#39;http://java.sun.com&#39;);return false;iceSubmit(form,this,event);return false;" onfocus="setFocus(this.id);" tabindex="21" type="submit" value="Open Help Window">...</input>
      [object Error]
      1. ICE-4669.zip
        8 kB
        yip.ng
      1. ScreenHunter_01.jpg
        96 kB
      2. ScreenHunter_02.jpg
        134 kB
      3. ScreenHunter_03.jpg
        261 kB

        Activity

        Hide
        yip.ng added a comment -

        The error occurs when the command button is present with the tab set. If we take out the command button or even replace it with a text input component, there will be no error.

        Show
        yip.ng added a comment - The error occurs when the command button is present with the tab set. If we take out the command button or even replace it with a text input component, there will be no error.
        Hide
        yip.ng added a comment -

        The error was introduced by ICE-4461 at revision 18869.

        Show
        yip.ng added a comment - The error was introduced by ICE-4461 at revision 18869.
        Hide
        yip.ng added a comment -

        Seems IE throws an exception when the font style property is being updated in the DOM.

        Show
        yip.ng added a comment - Seems IE throws an exception when the font style property is being updated in the DOM.
        Hide
        yip.ng added a comment -

        When the bridge code tries to update the dom for the style properties of an input element, IE somehow throws an "invalid argument" exception when the property is "font" and the new value is an empty string. (i.e. font property not specified.) All other properties work OK. When the font property is not specified, assigning an empty string is the same as not assigning it all. Therefore we can skip the font property assignment under this condition to avoid the IE exception.

        Show
        yip.ng added a comment - When the bridge code tries to update the dom for the style properties of an input element, IE somehow throws an "invalid argument" exception when the property is "font" and the new value is an empty string. (i.e. font property not specified.) All other properties work OK. When the font property is not specified, assigning an empty string is the same as not assigning it all. Therefore we can skip the font property assignment under this condition to avoid the IE exception.

          People

          • Assignee:
            yip.ng
            Reporter:
            yip.ng
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: