Details
-
Type: Bug
-
Status: Closed
-
Priority: 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
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
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.