Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: EE-3.3.0.GA_P01
-
Fix Version/s: EE-3.3.0.GA_P02, 4.0
-
Component/s: ACE-Components
-
Labels:None
-
Environment:Ace
-
Assignee Priority:P2
-
Support Case References:Support Case #12783 - https://icesoft.my.salesforce.com/5007000000bGAKR
Description
According to the wiki documentation, if you do not want an ACE theme to load, you should set the org.icefaces.ace.theme context param to 'none'. Doing this causes the following link stylesheet to be rendered:
<link href="RES_NOT_FOUND" rel="stylesheet" type="text/css">
Which results in a 404 error from the server.
The following is printed to the console: WARNING: JSF1064: Unable to find or serve resource, theme.css, from library, ace-none.
<link href="RES_NOT_FOUND" rel="stylesheet" type="text/css">
Which results in a 404 error from the server.
The following is printed to the console: WARNING: JSF1064: Unable to find or serve resource, theme.css, from library, ace-none.
Committed fix to 4.0 trunk at revision 40915 and to 3.3 EE maintenance branch at revision 40914.
The code to handle the 'none' parameter value must have been lost while moving from relying on the head renderer to the themeSelect component to serve the theme resource. In both codebases, the fix consists in adding code to check if "none" was specified as the org.icefaces.ace.theme context param. In the case of the 4.0 trunk, we'll serve an empty theme.css resource, because of the ResourceHandler approach to serve the resource, which expect a non-null Resource object. In the case of the 3.3 EE maintenance branch, we simply avoid creating a theme Resource.