-
1. Re: [RF4.3.3.Final] 404 for skinning.css with skin='plain'
bleathem Sep 3, 2013 6:15 PM (in response to jadtn)To be clear, you have RF components on other pages, and you want RF skinning to be active there, but on one particular page you do not have any RF components and you want to make sure no RF resources are downloaded on that page?
-
2. Re: Re: [RF4.3.3.Final] 404 for skinning.css with skin='plain'
jadtn Sep 4, 2013 3:13 PM (in response to bleathem)Hi Brian
Yes ,it's that, I don't want richfaces resources downloaded on specific pages which don't used richfaces and where i don't want a default skinning from richfaces.
With this simple page skinning.css is downloaded ,and if a button is present some another resources are dowloaded. ..
Etc...
With a skin="plain", I've a 404 on skinning.css
Do you know a way to avoid any richfaces resources downloaded on some specific page?
Thanks
Adrien
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <f:view xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" transient="true"> <html> <h:head> </h:head> <h:body> HELLO <a href="/">test</a> </h:body> </html> </f:view>
-
3. Re: Re: Re: [RF4.3.3.Final] 404 for skinning.css with skin='plain'
bleathem Sep 4, 2013 3:20 PM (in response to jadtn)I suppose disabling "control skinning" altogether is undesirable, as it affects all your pages?
<context-param> <param-name>org.richfaces.enableControlSkinning</param-name> <param-value>false</param-value> </context-param>
you could try binding the value of the above context-param to a managed-bean property, and programmatically enabling/disabling control skinning.
-
4. Re: Re: [RF4.3.3.Final] 404 for skinning.css with skin='plain'
jadtn Sep 4, 2013 6:36 PM (in response to bleathem)Thankssss ! I've never make attention there are 2 context-param for skins org.richfaces.enableControlSkinning AND org.richfaces.enableControlSkinningClasses .
I've put all to false and the skin is automaticaly when user do it'ss login using #{prefs}.
It's 3 requests less for my welcomes pages 9 requests to 6 (skinning.css,inputBackgroundImage.png,buttonBackgroundImage.png in less)
And 1 request on each page with richfaces component (no side effect visible, I've have no components affected by the removed skinning.css)
So may be there are also a bug with skin="plain" because it cause a http 404 for skinning.css?
If you 're right I can create a jira .
Thanks again
Adrien
web.xml
<context-param> <param-name>org.richfaces.enableControlSkinning</param-name> <param-value>false</param-value> </context-param> <context-param> <param-name>org.richfaces.enableControlSkinningClasses</param-name> <param-value>false</param-value> </context-param> <context-param> <param-name>org.richfaces.skin</param-name> <param-value>#{prefs.skin}</param-value> </context-param>
@SessionScoped public class PreferenceBean implements Serializable { private String skin="blueSky"; .... }
-
5. Re: Re: [RF4.3.3.Final] 404 for skinning.css with skin='plain'
bleathem Sep 4, 2013 4:54 PM (in response to jadtn)Your issue may already be tracked via the jira: https://issues.jboss.org/browse/RF-11103. Do you notice the exception in your server log?
-
6. Re: Re: [RF4.3.3.Final] 404 for skinning.css with skin='plain'
jadtn Sep 4, 2013 6:32 PM (in response to bleathem)No exception,with RF4.3.3Final and mojarra 2.1.25 JBOSS 6.1.0
I d try to change my web.xml (enableControlSkinning true/false/removed enableControlSkinningClasses true/fase/removed), only error is the 404 in firebug
-
7. Re: Re: [RF4.3.3.Final] 404 for skinning.css with skin='plain'
bleathem Sep 5, 2013 2:19 AM (in response to jadtn)Hmm, then please file a new issue, and we can link it to RF-11103.
-
8. Re: [RF4.3.3.Final] 404 for skinning.css with skin='plain'
jadtn Sep 6, 2013 7:25 AM (in response to bleathem)Here the RF, I ve made a link 'relates to', RF-11103 don't know if it the better.
[#RF-13170] Skin="plain' cause http 404 for skinning.css. - JBoss Issue Tracker