Thanks for the reply Nick. I tried:
<context-param> <param-name>org.richfaces.LoadStyleStrategy</param-name> <param-value>ALL</param-value> </context-param>
but it made no difference. Still looking for a solution. :-)
Have done some more research and discovered when my login page is first displayed, the link to the richfaces stylesheet looks like this:
<link rel='stylesheet' type='text/css' href='/WAITC/a4j_3_1_3.GAorg/richfaces/skin.xcss/DATB/eAFjlrb0AAAC6gHS'/>
When I put this into my web browser, nothing is returned. I don't get a 404, just an empty document. This is obviously why my page isn't being styled but why would this file e empty?
I added this to my components.xml and flushed the browser cache and pages subsequent to my login page now use the style. The login page still does not use it however. Not to mention that this makes the app VERY slow!
in files, that you attached to JIRAs issue, in web.xml missing filter for rich* components.
Add following strings in your web.xml:
<filter> <display-name>Ajax4jsf Filter</display-name> <filter-name>ajax4jsf</filter-name> <filter-class>org.ajax4jsf.Filter</filter-class> </filter> <filter-mapping> <filter-name>ajax4jsf</filter-name> <url-pattern>*.seam</url-pattern> </filter-mapping> <context-param> <param-name>org.ajax4jsf.SKIN</param-name> <param-value>wine</param-value> </context-param>
and remember filter for RichFaces must come first in web.xml
and please add one more context-param:
<context-param> <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name> <param-value>org.jboss.seam.ui.facelet.SeamFaceletViewHandler</param-value> </context-param>
I ran into the same problem using 3.1.3 or 3.1.4 snaps with JSF RI 1.2.07 and a JDK 6 on Glassfish V2b58.
Still unexplained to me.
For your infos, I just installed the latest glassfisg version glassfish-installer-v2ur1-b09d and all works fine now !
Another computer science mystery...
More clues: I had upgraded JSF RI to version 1.2.07 on my previous glassfish. The Glassfish I just installed contains 1.2.04.
In order to test the assumption that RI 1.2.07 has some regression, I upgraded the JSF lib to 1.2.07 again, and...css don't load anymore !!
Ok, rollback to 1.2.04...css load again !!
This is clear, something is wrong with the JSF version. I checked on the JSF forums, nothing like that matches. To be continued...