[richfaces-issues] [JBoss JIRA] Created: (RF-2316) Generated stylesheets sometimes return empty

cbonami (JIRA) jira-events at lists.jboss.org
Fri Feb 22 08:20:42 EST 2008


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
            Priority: Blocker


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 -->

	<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>

	<!-- 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