[richfaces-issues] [JBoss JIRA] Commented: (RF-2316) Generated stylesheets sometimes return empty
Torsten Fink (JIRA)
jira-events at lists.jboss.org
Mon Feb 25 05:43:42 EST 2008
[ http://jira.jboss.com/jira/browse/RF-2316?page=comments#action_12400451 ]
Torsten Fink commented on RF-2316:
----------------------------------
I have the same problem using firefox.
In our project we started with RichFaces 3.1.3 and are using 3.1.4.SR1 now. We use JBoss 4.2.2, Seam 2.0.1, and EJB-3.
I used Firebug to check the links to the stylesheets. It seems that the CSS is not found for simple panels.
This is what I get for the login-screen:
('1' is the line number not the content):
<link rel="stylesheet" type="text/css" href="/mps/a4j_3_1_4.SR1css/simpleTogglePanel.xcss/DATB/eAGbuWPCFgAGZAKW">
1
</link>
On the next screen I have a simple panel and a panelMenu (I removed some CSS information.):
<link rel="stylesheet" type="text/css" href="/mps/a4j_3_1_4.SR1org/richfaces/renderkit/html/css/panelMenu.xcss/DATB/eAGbuWPCFgAGZAKW">
1.dr-pmenu-top-group{height:20px;width:100%; ...REMOVED... dr-pmenu-selected-item{font-style:italic
;}
</link>
<link rel="stylesheet" type="text/css" href="/mps/a4j_3_1_4.SR1css/simpleTogglePanel.xcss/DATB/eAGbuWPCFgAGZAKW">
1
</link>
It seems that for the panel menu a CSS is created but not for the simple panel.
> 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