Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.0
-
Fix Version/s: 2.0.0
-
Component/s: ACE-Components
-
Labels:None
-
Environment:jsf2.0, ICEfaces2.0, ACE
-
Affects:Compatibility/Configuration
Description
upon updating to yui3.20, it was noticed that the markup for sliderEntry shows the paths to images with escaping backslashes...
for example:-
"thumbUrl":"javax.faces.resource\/assets\/skins\/sam\/thumb-x.png.jsf?ln=yui\/3_2_0"
Problem is in JSONBUilder placing in the escaping and the images won't load now (with 3.2.0).
for example:-
"thumbUrl":"javax.faces.resource\/assets\/skins\/sam\/thumb-x.png.jsf?ln=yui\/3_2_0"
Problem is in JSONBUilder placing in the escaping and the images won't load now (with 3.2.0).
I found the source of the escaped forward slashes, which is in JSONBuilder.entry(String,boolean). I commented out the forward slash escaping, which fixed the URL, but the image still wouldn't load.
public JSONBuilder entry(String key, String value, boolean isStringLiteral)
{ ... //value = value.replace("/", "\\/"); ... }return this;
}
It looks more like an issue with the change to YUI 3.2.0. We should investigate if YUI 3.2.0's slider allows for relative URLs, or if they need leading / or leading ./