ICEfaces-EE
  1. ICEfaces-EE
  2. IPCK-216

Tab View not loading on Chrome and Safari

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-2.0.0.Alpha1
    • Fix Version/s: EE-2.0.0.Beta1
    • Component/s: Facelet Components
    • Labels:
      None
    • Environment:
      Safari and Chrome, webkit
    • Workaround Description:
      icefaces-ace.jar must be present to supply YUI scripts.

      Description

      When loading the Tab View component in webkit the tabset does not render. Its seem to work in IE and FF well enough.

      When running Chromes developers tools the console shows the following resource could not be loaded. The error message is a bit generic but it either points to resource loading issue like we've seen before or perhaps a compression issue with the scripts being sent. The resource loading issue doesn't seem as likely here as the files in question never seem to load .

      :8080/component-showcase/icefaces/resource/Mzc2NTI4MDM=/Failed to load resource: the server responded with a status of 404 (Not Found)
      :8080/component-showcase/icefaces/resource/LTc2NDIxMzg3Ng==/Failed to load resource: the server responded with a status of 404 (Not Found)
      :8080/component-showcase/icefaces/resource/NzA1NTE5MDg3/Failed to load resource: the server responded with a status of 404 (Not Found)
      :8080/component-showcase/icefaces/resource/MTEyMzY2NzUy/Failed to load resource: the server responded with a status of 404 (Not Found)
      yui2-yde-min.jsFailed to load resource: the server responded with a status of 404 (Not Found)

        Activity

        Patrick Corless created issue -
        Patrick Corless made changes -
        Field Original Value New Value
        Salesforce Case []
        Fix Version/s EE-2.0.0.Beta1 [ 10254 ]
        Hide
        Carlo Guglielmin added a comment -

        Re-assign as Nils can test Safari on his Mac.

        Show
        Carlo Guglielmin added a comment - Re-assign as Nils can test Safari on his Mac.
        Carlo Guglielmin made changes -
        Assignee Brad Kroeger [ brad.kroeger ] Nils Lundquist [ nils.lundquist ]
        Hide
        Nils Lundquist added a comment -

        Problem seems to be a script tag whose src attribute is a yui.yahooapis.com URL that 404s.

        My guess Chrome and Webkit break onload JS execution after the 404, while Firefox etc. also end up with a 404, but keep executing.

        Looking into the source of this script tag.

        Show
        Nils Lundquist added a comment - Problem seems to be a script tag whose src attribute is a yui.yahooapis.com URL that 404s. My guess Chrome and Webkit break onload JS execution after the 404, while Firefox etc. also end up with a 404, but keep executing. Looking into the source of this script tag.
        Hide
        Nils Lundquist added a comment -

        yui2-yde-min.js Failed to load resource: the server responded with a status of 404 (Not Found)
        was the only file to return with a 404 on Safari, I'll also test with Chrome to see if the others 404 also.

        Show
        Nils Lundquist added a comment - yui2-yde-min.js Failed to load resource: the server responded with a status of 404 (Not Found) was the only file to return with a 404 on Safari, I'll also test with Chrome to see if the others 404 also.
        Hide
        Patrick Corless added a comment -

        Nils can you take a look into where the yui2-yde-min.js is supposed to be located? We had to removed the YUI JavaScript local to various components to avoid conflicts with the ace components. So the question is can the file be found in icefaces jars and if so can we change the lookup path that is erroring?

        An alternative is to wrap the ace tabset if the tags can be similar in functionality, but this would be a last resort.

        Show
        Patrick Corless added a comment - Nils can you take a look into where the yui2-yde-min.js is supposed to be located? We had to removed the YUI JavaScript local to various components to avoid conflicts with the ace components. So the question is can the file be found in icefaces jars and if so can we change the lookup path that is erroring? An alternative is to wrap the ace tabset if the tags can be similar in functionality, but this would be a last resort.
        Hide
        Nils Lundquist added a comment -

        Can do. Was wondering what happened to that local JS source.

        Seems like the whole tabViewConfig bean is missing; I'll set that up with YUI script paths targeting the ICEfaces jars.

        Show
        Nils Lundquist added a comment - Can do. Was wondering what happened to that local JS source. Seems like the whole tabViewConfig bean is missing; I'll set that up with YUI script paths targeting the ICEfaces jars.
        Hide
        Nils Lundquist added a comment -

        26012 by nils.lundquist, 1:33 PM
        #IPCK-216

        Altered YUI "modules" initialization in component JS. These scripts should already be loaded, so this initialization could be removed entirely, however if for some reason they weren't loaded, as long as the ACE jar is present, "modules" can now load it. The 404ing load isn't attempted, and Safari/Chrome now works as expected.

        Added tabViewConfig managed bean to store JS paths for "modules".

        Also added a ui:remove around commented out outputScript tags. Previously had problems with comments being processed in Facelets.

        [Jan 28, 13:28:43] Committing 3 items...
        Sending '/compat-composite-components/conf/faces-config.xml'
        Sending '/compat-composite-components/web/tabView/tab.xhtml'
        Sending '/compat-composite-components/web/tabView/tabView.xhtml'
        Transmitting file data for '/compat-composite-components/web/tabView/tab.xhtml'
        Transmitting file data for '/compat-composite-components/conf/faces-config.xml'
        Transmitting file data for '/compat-composite-components/web/tabView/tabView.xhtml'
        Committed revision 26012 by user "nils.lundquist".
        [Jan 28, 13:34:02] Finished operation.

        Show
        Nils Lundquist added a comment - 26012 by nils.lundquist, 1:33 PM # IPCK-216 Altered YUI "modules" initialization in component JS. These scripts should already be loaded, so this initialization could be removed entirely, however if for some reason they weren't loaded, as long as the ACE jar is present, "modules" can now load it. The 404ing load isn't attempted, and Safari/Chrome now works as expected. Added tabViewConfig managed bean to store JS paths for "modules". Also added a ui:remove around commented out outputScript tags. Previously had problems with comments being processed in Facelets. [Jan 28, 13:28:43] Committing 3 items... Sending '/compat-composite-components/conf/faces-config.xml' Sending '/compat-composite-components/web/tabView/tab.xhtml' Sending '/compat-composite-components/web/tabView/tabView.xhtml' Transmitting file data for '/compat-composite-components/web/tabView/tab.xhtml' Transmitting file data for '/compat-composite-components/conf/faces-config.xml' Transmitting file data for '/compat-composite-components/web/tabView/tabView.xhtml' Committed revision 26012 by user "nils.lundquist". [Jan 28, 13:34:02] Finished operation.
        Nils Lundquist made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Nils Lundquist made changes -
        Workaround Description icefaces-ace.jar must be present to supply YUI scripts.
        Salesforce Case []
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: