ICEfaces
  1. ICEfaces
  2. ICE-7750

Multiple ice:inputRichText components on one page not working after upgrading to IceFaces 3.0

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: EE-3.0.0.BETA, 3.0.1
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      ICEfaces 3.0.0 build 14 (or trunk revision 27709)
      Browsers: all (not tested in IE9 and IE7 yet)
      Server: Tomcat6

      Description

      If submitting a form with more than one <ice:inputRichText/> components, then a JS error occurs. This works fine with just one editor on the page or switching back to IceFaces 2.x .

      In Chrome 16 there are actually 2 errors, the error 1) occurs also with just one ice:inputRichText component in the form:
      1) GET http://localhost:8080/testInputRichText/RES_NOT_FOUND 404 (Not Found)

      2) Uncaught TypeError: Cannot read property 'parentNode' of undefined

      In Firefox (all versions 3.6, 9, 10), the error is:
      Error: iframe is undefined
      Source File: http://localhost:8080/testInputRichText/javax.faces.resource/bridge.js.jsf;jsessionid=43E0092FE43466021D834DFACC2EC759?v=1631908987
      Line: 2822

      In IE8 there is JS error when submitting the form with 2 inputRichText components:
      Webpage error details
      User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MDDS; .NET4.0C)
      Timestamp: Thu, 9 Feb 2012 21:06:18 UTC

      Message: 'parentNode' is null or not an object
      Line: 2822
      Char: 21
      Code: 0
      URI: http://localhost:8080/testInputRichText/javax.faces.resource/bridge.js.jsf;jsessionid=336AC48F7A8E66984259C898DE480A83?v=1631908987
      1. chrome-icefaces3.0jars.png
        86 kB
      2. FF3.6-icefaces3.0jars.png
        117 kB

        Activity

        Hide
        Mircea Toma added a comment -

        I could reproduce the issue with the libraries included into the attached test case. Once I replaced the libraries with the latest ones (build off ICEfaces3 rev. 27828) the issue went away.

        Show
        Mircea Toma added a comment - I could reproduce the issue with the libraries included into the attached test case. Once I replaced the libraries with the latest ones (build off ICEfaces3 rev. 27828) the issue went away.
        Hide
        Carmen Cristurean added a comment -

        Verified with ICEfaces3.0.0 maintenance branch Rev # 27886, and the issue is resolved.

        When loading the test page in Chrome, there still is this error:
        GET http://localhost:8080/testInputRichText/RES_NOT_FOUND 404 (Not Found)

        Show
        Carmen Cristurean added a comment - Verified with ICEfaces3.0.0 maintenance branch Rev # 27886, and the issue is resolved. When loading the test page in Chrome, there still is this error: GET http://localhost:8080/testInputRichText/RES_NOT_FOUND 404 (Not Found)
        Hide
        Carmen Cristurean added a comment -

        The last mentioned error was resolved after applying these changes in the main.xhtml file:

        • Removed the " <h:outputStylesheet library="org.icefaces.component.skins" name="rime.css" /> " line at the bottom of the body.
        • Removed the "styleClass="ice-skin-rime" attribute from the <h:body> tag.
        Show
        Carmen Cristurean added a comment - The last mentioned error was resolved after applying these changes in the main.xhtml file: Removed the " <h:outputStylesheet library="org.icefaces.component.skins" name="rime.css" /> " line at the bottom of the body. Removed the "styleClass="ice-skin-rime" attribute from the <h:body> tag.

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Carmen Cristurean
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: