ICEfaces
  1. ICEfaces
  2. ICE-2973

multiple outputConnectionStatus components causing js errors.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7RC1
    • Fix Version/s: None
    • Component/s: Bridge, ICE-Components
    • Labels:
      None
    • Environment:
      ICEfaces component showcase enhanced.

      Description

      This was found by a client as well as by a recent enhancement to the component showcase. When using Facelets (not sure about plain JSF ) we have two connectionStatus components being used on two separate templates but never rendered at the same time.

      For example, assuming component showcase 2 facelets-enh.

      facelets-enh/web/WEB-INF/tabbed_conainer.jspx
      - template for all component pages, has a outputConnectionStatus at the top of the page


      facelets-enh/web/WEB-INF/plain_container.jspx
      - template for the single page splash screen
      - when the following component is added the application needs a hard browser refresh to get the application working
      <ice:outputConnectionStatus
                                  styleClass="navConnectionStatus"
                                  id="tabbedOutput"
                                  showPopupOnDisconnect="true"/>

      The templates are never used at the same time but they seem to cause some confusion in the bridge.

      Here is the error.

      this.elementID.asElement() has no properties
      initialize()icefaces-d2d.js (line 30)
      initialize(Object)icefaces-d2d.js (line 30)
      create()icefaces-d2d.js (line 2)
      each(Object)icefaces-d2d.js (line 4)
      each(function(), undefined)icefaces-d2d.js (line 4)
      initialize()icefaces-d2d.js (line 30)
      initialize()icefaces-d2d.js (line 30)
      initialize()icefaces-d2d.js (line 35)
      eachWithGuard(function())icefaces-d2d.js (line 14)
      each(function())icefaces-d2d.js (line 4)
      each(function(), undefined)icefaces-d2d.js (line 4)
      eachWithGuard(Object identifier=3400056 request=XMLHttpRequest)icefaces-d2d.js (line 14)
      initialize(Object identifier=3400056 request=XMLHttpRequest)icefaces-d2d.js (line 34)
      create()icefaces-d2d.js (line 2)
      initialize("/component-showcase/block/send-receive-updates", "ice.submit.partial=false&ice.event.target=navigationMenuForm%3Aj_id23%3A0%3Aj_id26&ice.event.capture...", function())icefaces-d2d.js (line 19)
      initialize("/component-showcase/block/send-receive-updates", "ice.submit.partial=false&ice.event.target=navigationMenuForm%3Aj_id23%3A0%3Aj_id26&ice.event.capture...", function())icefaces-d2d.js (line 19)
      initialize(Object parameters=[22])icefaces-d2d.js (line 34)
      initialize(Object logger=Object sendChannel=Object)icefaces-d2d.js (line 20)
      iceSubmit(form#navigationMenuForm.iceFrm iceSubmit(&#39;navig..., div.icePnlClpsblColpsdHdr, click clientX=0, clientY=0)icefaces-d2d.js (line 25)
      onclick(click clientX=0, clientY=0)showcase.iface# (line 1)
      [Break on this error] [Ice.Status=new Object].as(function(A){A.NOOPIndicator={on:Function.NOOP,off:Fun...

        Issue Links

          Activity

          Repository Revision Date User Message
          ICEsoft Public SVN Repository #16732 Tue May 27 14:27:27 MDT 2008 mircea.toma Refactor how custom status indicators are wired into the bridge. ICE-2973
          Files Changed
          Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/component/src/com/icesoft/faces/component/outputconnectionstatus/OutputConnectionStatusRenderer.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #16534 Mon Apr 28 14:59:37 MDT 2008 mircea.toma Remove reference to missing indicator.
          ICE-2973
          Files Changed
          Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/bridge/src/application.js
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #16533 Mon Apr 28 14:57:55 MDT 2008 mircea.toma Remove reference to missing indicator.
          ICE-2973
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/bridge/src/application.js
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #16529 Mon Apr 28 13:03:23 MDT 2008 mircea.toma Remove commented out code.
          ICE-2973
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/context/DOMResponseWriter.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #16528 Mon Apr 28 13:02:27 MDT 2008 mircea.toma Migrate fix to 1.7 branch.
          ICE-2973
          Files Changed
          Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/core/src/com/icesoft/faces/context/DOMResponseWriter.java
          Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/bridge/src/application.js
          Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/bridge/src/status.js
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #16509 Thu Apr 24 15:24:11 MDT 2008 mircea.toma Rename Hash variable to avoid conflict with Tomahawk JS library.
          ICE-2973
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/bridge/lib/prototype/deprecated.js
          Commit graph MODIFY /icefaces/trunk/icefaces/bridge/lib/prototype/hash.js
          Commit graph MODIFY /icefaces/trunk/icefaces/bridge/lib/openajax/bridge.open.ajax.js
          Commit graph MODIFY /icefaces/trunk/icefaces/bridge/lib/prototype/base.js
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #16483 Tue Apr 22 12:20:06 MDT 2008 mircea.toma Instantiate bridge at the begining of the container element.
          Refactor how custom status indicators are wired into the bridge.
          ICE-2973
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/bridge/src/status.js
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/context/DOMResponseWriter.java
          Commit graph MODIFY /icefaces/trunk/icefaces/bridge/src/application.js
          Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/outputconnectionstatus/OutputConnectionStatusRenderer.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #16385 Thu Apr 10 10:44:30 MDT 2008 mircea.toma Revert changes for now.
          ICE-2973
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/bridge/src/status.js
          Commit graph MODIFY /icefaces/trunk/icefaces/bridge/src/application.js
          Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/outputconnectionstatus/OutputConnectionStatusRenderer.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #16379 Wed Apr 09 18:02:59 MDT 2008 mircea.toma Re-create status indicators everytime connection status component is updated.
          Refactor fixes for ICE-2621.

          ICE-2973
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/outputconnectionstatus/OutputConnectionStatusRenderer.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #16378 Wed Apr 09 17:50:45 MDT 2008 mircea.toma Re-create status indicators everytime connection status component is updated.
          Refactor fixes for ICE-2621.

          ICE-2973
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/bridge/src/status.js
          Commit graph MODIFY /icefaces/trunk/icefaces/bridge/src/application.js

            People

            • Assignee:
              Unassigned
              Reporter:
              Patrick Corless
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: