[richfaces-issues] [JBoss JIRA] Commented: (RF-2316) Generated stylesheets sometimes return empty
Torsten Fink (JIRA)
jira-events at lists.jboss.org
Fri Feb 29 03:40:02 EST 2008
[ http://jira.jboss.com/jira/browse/RF-2316?page=comments#action_12400911 ]
Torsten Fink commented on RF-2316:
----------------------------------
We now removed the "login-required" from al URLs that are used by RichFaces:
<page view-id="/layout/*" login-required="false" />
<page view-id="/img/*" login-required="false" />
<page view-id="/stylesheet/*" login-required="false" />
We also removed the general login-required configuration:
<page view-id="*" login-required="true /> REMOVED
For two days now it worked for 5 developers.
If it works until the end of next week, then I think we found a workaround.
In my opinion, even if it works it is still a bug. But I am not sure if it is in RichFaces or in Seam...
> Generated stylesheets sometimes return empty
> --------------------------------------------
>
> Key: RF-2316
> URL: http://jira.jboss.com/jira/browse/RF-2316
> Project: RichFaces
> Issue Type: Bug
> Affects Versions: 3.1.4
> Environment: Visat; Jboss 4.2.2; facelets; RichFaces 3.1.4; SEAM 2.0.1
> Reporter: cbonami
> Assigned To: Nick Belaevski
> Priority: Blocker
> Fix For: 3.2.0
>
>
> I have this snippet in my xhtml page:
> <rich:panel>
> <f:facet name="header">Login</f:facet>
> <p>Please login using any username and password</p>
> ...
> </rich:panel>
> When the page gets actually rendered, the rich:panel doesn't get 'skinned', i.e. styles cannot be applied because the generated link
> <link rel='stylesheet' type='text/css' href='/mazda/a4j_3_1_2.GAcss/panel.xcss/DATB/eAFjlbr0AAAC6gHS' />
> returns an empty page.
> There are other components that don't get skinned (rich:toolBar, rich:dropDownMenu), but this only happens in Internet Explorer. Those particular skins get well rendered in Firefox.
> What's wrong?
> This is my web.xml:
> <?xml version="1.0" ?>
> <web-app xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
> version="2.5">
> <!-- Ajax4jsf/RichFaces -->
> <context-param>
> <param-name>org.richfaces.SKIN</param-name>
> <param-value>blueSky</param-value>
> </context-param>
> <context-param>
> <param-name>org.richfaces.LoadScriptStrategy</param-name>
> <param-value>ALL</param-value>
> </context-param>
> <context-param>
> <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
> <param-value>false</param-value>
> </context-param>
> <context-param>
> <param-name>org.richfaces.LoadStyleStrategy</param-name>
> <param-value>ALL</param-value>
> </context-param>
> <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>
> <!--
> <filter-mapping>
> <filter-name>ajax4jsf</filter-name>
> <servlet-name>Faces Servlet</servlet-name>
> <dispatcher>REQUEST</dispatcher>
> <dispatcher>FORWARD</dispatcher>
> <dispatcher>INCLUDE</dispatcher>
> </filter-mapping>
> -->
> <context-param>
> <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
> <param-value>
> org.jboss.seam.ui.facelet.SeamFaceletViewHandler
> </param-value>
> </context-param>
> <context-param>
> <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
> <param-value>server</param-value>
> </context-param>
>
> <listener>
> <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
> </listener>
> <!-- Seam -->
> <listener>
> <listener-class>
> org.jboss.seam.servlet.SeamListener
> </listener-class>
> </listener>
> <filter>
> <filter-name>Seam Filter</filter-name>
> <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
> </filter>
> <filter-mapping>
> <filter-name>Seam Filter</filter-name>
> <url-pattern>/*</url-pattern>
> </filter-mapping>
> <servlet>
> <servlet-name>Seam Resource Servlet</servlet-name>
> <servlet-class>
> org.jboss.seam.servlet.SeamResourceServlet
> </servlet-class>
> </servlet>
> <servlet-mapping>
> <servlet-name>Seam Resource Servlet</servlet-name>
> <url-pattern>/seam/resource/*</url-pattern>
> </servlet-mapping>
> <!-- Facelets development mode (disable in production) -->
> <context-param>
> <param-name>facelets.DEVELOPMENT</param-name>
> <param-value>true</param-value>
> </context-param>
> <!-- JSF -->
> <context-param>
> <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
> <param-value>.xhtml</param-value>
> </context-param>
> <servlet>
> <servlet-name>Faces Servlet</servlet-name>
> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
> <load-on-startup>1</load-on-startup>
> </servlet>
> <servlet-mapping>
> <servlet-name>Faces Servlet</servlet-name>
> <url-pattern>*.seam</url-pattern>
> </servlet-mapping>
> <security-constraint>
> <display-name>Restrict raw XHTML Documents</display-name>
> <web-resource-collection>
> <web-resource-name>XHTML</web-resource-name>
> <url-pattern>*.xhtml</url-pattern>
> </web-resource-collection>
> <auth-constraint />
> </security-constraint>
> </web-app>
> This is may faces-config.xml:
> <?xml version='1.0' encoding='UTF-8'?>
> <faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
> <lifecycle>
> <phase-listener>org.jboss.seam.jsf.SeamPhaseListener</phase-listener>
> </lifecycle>
> <application>
> <locale-config>
> <default-locale>en</default-locale>
> </locale-config>
> <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
> </application>
> ...
> </faces-config>
> I'm struggling with this problem for days now, and don't seem to get any further. Stylesheets just return empty... what can I do ?
> I cleared my IE cache, etc, etc. Nothing works.
> Plz help
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list