[richfaces-issues] [JBoss JIRA] (RF-12706) packed resources generate more than one css file with the same name

Pavol Pitonak (JIRA) jira-events at lists.jboss.org
Fri Jan 11 08:01:10 EST 2013


    [ https://issues.jboss.org/browse/RF-12706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12745294#comment-12745294 ] 

Pavol Pitonak commented on RF-12706:
------------------------------------

Could you please provide more information? I cannot reproduce the issue. Your code sample generates this output:
{code:xml}
<head>
    <title>JSF Test</title>
    <link type="text/css" rel="stylesheet" href="/metamer/org.richfaces.resources/javax.faces.resource/org.richfaces.staticResource/4.3.0.20121214-M3/PackedCompressed/blueSky/skinning.css" />
    <script type="text/javascript" src="/metamer/faces/javax.faces.resource/jsf.js?ln=javax.faces"></script>
    <script type="text/javascript" src="/metamer/org.richfaces.resources/javax.faces.resource/org.richfaces.staticResource/4.3.0.20121214-M3/PackedCompressed/jquery.js"></script>
    <script type="text/javascript" src="/metamer/org.richfaces.resources/javax.faces.resource/org.richfaces.staticResource/4.3.0.20121214-M3/PackedCompressed/packed/packed.js"></script>  
    <link type="text/css" rel="stylesheet" href="/metamer/org.richfaces.resources/javax.faces.resource/org.richfaces.staticResource/4.3.0.20121214-M3/PackedCompressed/blueSky/packed/packed.css" />
</head>
{code}
                
> packed resources generate more than one css file with the same name
> -------------------------------------------------------------------
>
>                 Key: RF-12706
>                 URL: https://issues.jboss.org/browse/RF-12706
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 4.3.0.M3
>         Environment: Richfaces 4.3.0.M3, myfaces-2.1.10
>            Reporter: Rene O
>
> Simple Testcase: 
> Use at least two different richfaces-components and you can see, that there appear more than one packed-css resource with the same name, which is not the expected behaviour.
> This issue appear within firefox, chrome and ie8
> {code:title=web.xml}
> ...
> <context-param>
> 	<param-name>org.richfaces.resourceMapping.enabled</param-name>
> 		<param-value>true</param-value>
> 	</context-param>
> 	<context-param>
> 		<param-name>org.richfaces.resourceMapping.packedStages</param-name>
> 		<param-value>All</param-value>
> 	</context-param>
> ...
> {code}
> {code:title=testpage.xhtml}
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html 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"
> 	  xmlns:a4j="http://richfaces.org/a4j"
> 	  xmlns:rich="http://richfaces.org/rich"	 
> 	 >
> 	<h:head>
> 		<title>JSF Test</title>		
> 	</h:head>
> 	<h:body>
> 		<h:form id="testForm">			
> 			<rich:panel id="testPanel">
> 				<f:facet name="header">
> 					Test
> 				</f:facet>
> 					Content
> 			</rich:panel>
> 			
> 			<rich:select id="select" value="none">
> 				<f:selectItem itemLabel="label" itemValue="test"/>
> 			</rich:select>
> 		</h:form>		
> 	</h:body>  
> </html>
> {code}
> {code:title=html-output}
> <link rel="stylesheet" media="screen" type="text/css" href="/jsftest/org.richfaces.resources/javax.faces.resource/org.richfaces.staticResource/4.3.0.20121214-M3/PackedCompressed/DEFAULT/packed/packed.css" />
> <link rel="stylesheet" media="screen" type="text/css" href="/jsftest/org.richfaces.resources/javax.faces.resource/org.richfaces.staticResource/4.3.0.20121214-M3/PackedCompressed/DEFAULT/packed/packed.css" />
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the richfaces-issues mailing list