Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 3.2
-
Fix Version/s: 3.3
-
Component/s: ICE-Components
-
Labels:None
-
Environment:Compat Components
-
Assignee Priority:P1
-
ICEsoft Forum Reference:
Description
A couple of recent forum postings:
http://www.icesoft.org/JForum/posts/list/21716.page#76295
http://www.icesoft.org/JForum/posts/list/21306.page#74870
have noted that they are seeing this being logged:
2012-09-24 14:17:19,339 ERROR com.icesoft.faces.component.style.OutputStyleRenderer - Error in OutputStyleRenderer java.lang.RuntimeException: OutputStyle file attribute must end in .css. Current Value is [/app/javax.faces.resource/tce.css.iface?ln=css] at com.icesoft.faces.component.style.OutputStyleRenderer.encodeEnd(OutputStyleRenderer.java:119) - See more at: http://www.icesoft.org/JForum/posts/list/21306.page#74870
It seems that if you use the #{resource['css:styles.css']} style syntax, the library name is automatically added to the URL. The OutputStyleRenderer is doing a fairly brute force check to see if the URL (rather than the file) ends with .css and bails if it encounters something like /app/javax.faces.resource/styles.css.iface?ln=css.
So we should make the checking a bit smarter in order to allow the use of the #{resource} EL syntax.
http://www.icesoft.org/JForum/posts/list/21716.page#76295
http://www.icesoft.org/JForum/posts/list/21306.page#74870
have noted that they are seeing this being logged:
2012-09-24 14:17:19,339 ERROR com.icesoft.faces.component.style.OutputStyleRenderer - Error in OutputStyleRenderer java.lang.RuntimeException: OutputStyle file attribute must end in .css. Current Value is [/app/javax.faces.resource/tce.css.iface?ln=css] at com.icesoft.faces.component.style.OutputStyleRenderer.encodeEnd(OutputStyleRenderer.java:119) - See more at: http://www.icesoft.org/JForum/posts/list/21306.page#74870
It seems that if you use the #{resource['css:styles.css']} style syntax, the library name is automatically added to the URL. The OutputStyleRenderer is doing a fairly brute force check to see if the URL (rather than the file) ends with .css and bails if it encounters something like /app/javax.faces.resource/styles.css.iface?ln=css.
So we should make the checking a bit smarter in order to allow the use of the #{resource} EL syntax.
[3:02:15 PM] Deryk Sinotte: ant -Dliferayfaces="true" clean liferay6.servlet-profile
[2013-03-18 4:27:20 PM] Yip: Working now. Thanks a lot!