ICEfaces
  1. ICEfaces
  2. ICE-6887

ACE components don't initialize in the client when Logger is the first ACE component on the page

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0, EE-2.0.0.GA, 2.0.2
    • Fix Version/s: 2.1-Beta, 3.0, EE-2.0.0.GA_P01
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      Any
    • Assignee Priority:
      P2

      Description

      Some javascript errors occur when trying to initialize any ACE component in the client, preventing the component to appear on the page. This occurs under certain circumstances. For example, it occurs when trying to dynamically render the component using the 'render' attribute or when using singleSubmit= false, as seen on the test app located at /repo/qa/trunk/Regression-Icefaces2/Sparkle/Nightly/CheckboxBttn. The problem seems to be related to the regular expressions used to dynamically load YUI resources.

        Activity

        Hide
        Arturo Zambrano added a comment -

        The problem was actually caused by the fact that Logger only declares comined.js as a @ResourceDependency (point: it doesn't declare yui-min.js and loader-min.js as the rest of the ACE components). So, if combined.js is loaded first, our loader code will not find yui-min.js, which is necessary to initialize the YUI loader. This was fixed by simply adding yui-min.js and loader-min.js as @ResourceDependencies to Logger.

        Show
        Arturo Zambrano added a comment - The problem was actually caused by the fact that Logger only declares comined.js as a @ResourceDependency (point: it doesn't declare yui-min.js and loader-min.js as the rest of the ACE components). So, if combined.js is loaded first, our loader code will not find yui-min.js, which is necessary to initialize the YUI loader. This was fixed by simply adding yui-min.js and loader-min.js as @ResourceDependencies to Logger.

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Arturo Zambrano
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: