You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "R. Müller" <r....@unicomp-berlin.de> on 2008/06/05 16:15:59 UTC

[Tomahawk] t:stylesheet renders link to an empty page

Hi,

I've just tested my webapp in different tomcat-versions.

So i've tested :

tomcat-5.0.27
tomcat-5.5.20
tomcat-5.5.24
tomcat-6.0.16

So far everything works fine, but on tomcat-5.5.24 and tomcat-6.0.16 the
link rendered by <t:stylesheet> links to an empty page, and so the page
is not styled.

My environment is Linux, MyFaces Core 1.1.5, Tomahawk 1.1.5, Sandbox
1.1.7, Facelets 1.1.13. I also tried the latest Tomahawk SNAPSHOT (1.1.7).

This is the link rendered by <t:stylesheet> :

<link rel="stylesheet" type="text/css"
ref="/MyApp/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/12126727/stylesheet.TextResourceFilterProvider//css/header.css"
/>

(looks similar in every tomcat-version ...)

If i request the URL - i get an absolute empty page but with the right
mime-type "text/css". Requesting the css-file directly (not using the
MyFacesResourceLoader) works fine ('/MyApp/css/header.css').

All the other resources, which are served by the extension-filter
working fine (scripts , etc.).

The stylesheet-tag is used inside a facelets-template :

<ui:composition template="/WEB-INF/templates/layout.xhtml">

...

The template looks like this :

<html 	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
      	xmlns:f="http://java.sun.com/jsf/core"
      	xmlns:t="http://myfaces.apache.org/tomahawk"
      	xmlns:unicomp="http://www.unicomp-berlin.de/jsf/facelets">
      	
	<f:view contentType="text/html">

	    <f:loadBundle basename="i18n.messages" var="i18n"/>
		<head>
		<meta http-equiv="Content-Type" 	content="application/xhtml+xml;
charset=UTF-8"/>
		<title>
		<ui:insert name="title">
		</ui:insert>
		</title>
		<link rel="shortcut icon" type="image/x-icon"
href="#{facesContext.externalContext.requestContextPath}/favicon.png" />
		<t:stylesheet path="/css/generell.css" filtered="true"/>
		<t:stylesheet path="/css/lists.css" filtered="true"/>
		<t:stylesheet path="/css/header.css" filtered="true"/>
		</script> -->
		<script type="text/javascript">
			function init() {
			}
		</script>
		<style type="text/css">
			.menu {
			 padding:10px;
			}
		</style>
		</head>
		
		<body onload="init()">
			<ui:insert name="header">
				<ui:include src="header.xhtml" />
			</ui:insert>
			<ui:insert name="menu">
				<unicomp:menu/>
			</ui:insert>
			<ui:insert name="content">
				${pageContext.request.contextPath}
			</ui:insert>
		</body>
	</f:view>
</html>


I have absolute no idea where to start debugging, as this issue seems to
be related with the tomcat version !?

Any suggestions ?

Regards

Ronald








-- 
*****************************************************************
*M-UniComp Verkehrssysteme GmbH
*
*Dipl.-Ing. Ronald Müller
*Softwareentwicklung
*
*Plauener Straße 163-165, Haus 11
*13053 Berlin
*
*fon   : +49 ( 0 ) 30  / 98 31 700 70
*fax   : +49 ( 0 ) 30  / 98 31 700 77
*mobil : +49 ( 0 ) 172 / 93 95 004
*email : r.mueller@unicomp-berlin.de
*web   : www.unicomp-berlin.de
*
*Geschaeftsfuehrer: Andreas Dreher
*Sitz der Gesellschaft: Berlin
*Registergericht: Berlin Amtsgericht Charlottenburg, HRB 35329
*****************************************************************

Re: [Tomahawk] t:stylesheet renders link to an empty page

Posted by "R. Müller" <r....@unicomp-berlin.de>.
i opened a jira-bug on this :

https://issues.apache.org/jira/browse/TOMAHAWK-1266

Ronald

-- 
*****************************************************************
*M-UniComp Verkehrssysteme GmbH
*
*Dipl.-Ing. Ronald Müller
*Softwareentwicklung
*
*Plauener Straße 163-165, Haus 11
*13053 Berlin
*
*fon   : +49 ( 0 ) 30  / 98 31 700 70
*fax   : +49 ( 0 ) 30  / 98 31 700 77
*mobil : +49 ( 0 ) 172 / 93 95 004
*email : r.mueller@unicomp-berlin.de
*web   : www.unicomp-berlin.de
*
*Geschaeftsfuehrer: Andreas Dreher
*Sitz der Gesellschaft: Berlin
*Registergericht: Berlin Amtsgericht Charlottenburg, HRB 35329
*****************************************************************

Re: [Tomahawk] t:stylesheet renders link to an empty page

Posted by "R. Müller" <r....@unicomp-berlin.de>.
hi leonardo,

can you provide more details? which of the many changes in changelog
from 5.5.23 to 24 is responsible for that ? why all the other stuff is
working which is served by the extension-filter (scripts , styles from
jscookmenu ... etc.) ?

i figured out that ( of course ) this 'bug' only occurs if the
filter-attribute is set to 'true'. but this is quit clear since without
filtering the stylesheet is served directly without utilizing the
extension-filter.

furthermore i prepared a minimal test-case which shows the discribed
behavior (without facelets and all the stuff from my webapp).  I will
open a bug-report on this and provide the war-Archiv there.


regards

ronald


Leonardo Uribe schrieb:
> Hi
> 
> The problem is in the latest tomcat (the code that open the file and
> loads the stylesheet does not work, and this code was not changed
> recently, but there was a related change on tomcat), and is also on
> jetty. I'm looking for a solution.
> 
> regards
> 
> Leonardo Uribe
> 
> 
-- 
*****************************************************************
*M-UniComp Verkehrssysteme GmbH
*
*Dipl.-Ing. Ronald Müller
*Softwareentwicklung
*
*Plauener Straße 163-165, Haus 11
*13053 Berlin
*
*fon   : +49 ( 0 ) 30  / 98 31 700 70
*fax   : +49 ( 0 ) 30  / 98 31 700 77
*mobil : +49 ( 0 ) 172 / 93 95 004
*email : r.mueller@unicomp-berlin.de
*web   : www.unicomp-berlin.de
*
*Geschaeftsfuehrer: Andreas Dreher
*Sitz der Gesellschaft: Berlin
*Registergericht: Berlin Amtsgericht Charlottenburg, HRB 35329
*****************************************************************

Re: [Tomahawk] t:stylesheet renders link to an empty page

Posted by Leonardo Uribe <lu...@gmail.com>.
Hi

The problem is in the latest tomcat (the code that open the file and loads
the stylesheet does not work, and this code was not changed recently, but
there was a related change on tomcat), and is also on jetty. I'm looking for
a solution.

regards

Leonardo Uribe



On Thu, Jun 5, 2008 at 10:17 AM, "R. Müller" <r....@unicomp-berlin.de>
wrote:

> just tested tomcat-5.5.23 and everything works fine there.
> is there any myfaces / tomahawk related change between tomcat 5.5.23 and
> 5.5.24 ?
>
> regards
>
> Ronald
>
>
> R. Müller schrieb:
> > Hi,
> >
> > I've just tested my webapp in different tomcat-versions.
> >
> > So i've tested :
> >
> > tomcat-5.0.27
> > tomcat-5.5.20
> > tomcat-5.5.24
> > tomcat-6.0.16
> >
> > So far everything works fine, but on tomcat-5.5.24 and tomcat-6.0.16 the
> > link rendered by <t:stylesheet> links to an empty page, and so the page
> > is not styled.
> >
> > My environment is Linux, MyFaces Core 1.1.5, Tomahawk 1.1.5, Sandbox
> > 1.1.7, Facelets 1.1.13. I also tried the latest Tomahawk SNAPSHOT
> (1.1.7).
> >
> > This is the link rendered by <t:stylesheet> :
> >
> > <link rel="stylesheet" type="text/css"
> >
> ref="/MyApp/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/12126727/stylesheet.TextResourceFilterProvider//css/header.css"
> > />
> >
> > (looks similar in every tomcat-version ...)
> >
> > If i request the URL - i get an absolute empty page but with the right
> > mime-type "text/css". Requesting the css-file directly (not using the
> > MyFacesResourceLoader) works fine ('/MyApp/css/header.css').
> >
> > All the other resources, which are served by the extension-filter
> > working fine (scripts , etc.).
> >
> > The stylesheet-tag is used inside a facelets-template :
> >
> > <ui:composition template="/WEB-INF/templates/layout.xhtml">
> >
> > ...
> >
> > The template looks like this :
> >
> > <html         xmlns="http://www.w3.org/1999/xhtml"
> >       xmlns:ui="http://java.sun.com/jsf/facelets"
> >       xmlns:h="http://java.sun.com/jsf/html"
> >               xmlns:f="http://java.sun.com/jsf/core"
> >               xmlns:t="http://myfaces.apache.org/tomahawk"
> >               xmlns:unicomp="http://www.unicomp-berlin.de/jsf/facelets">
> >
> >       <f:view contentType="text/html">
> >
> >           <f:loadBundle basename="i18n.messages" var="i18n"/>
> >               <head>
> >               <meta http-equiv="Content-Type"
> content="application/xhtml+xml;
> > charset=UTF-8"/>
> >               <title>
> >               <ui:insert name="title">
> >               </ui:insert>
> >               </title>
> >               <link rel="shortcut icon" type="image/x-icon"
> > href="#{facesContext.externalContext.requestContextPath}/favicon.png" />
> >               <t:stylesheet path="/css/generell.css" filtered="true"/>
> >               <t:stylesheet path="/css/lists.css" filtered="true"/>
> >               <t:stylesheet path="/css/header.css" filtered="true"/>
> >               </script> -->
> >               <script type="text/javascript">
> >                       function init() {
> >                       }
> >               </script>
> >               <style type="text/css">
> >                       .menu {
> >                        padding:10px;
> >                       }
> >               </style>
> >               </head>
> >
> >               <body onload="init()">
> >                       <ui:insert name="header">
> >                               <ui:include src="header.xhtml" />
> >                       </ui:insert>
> >                       <ui:insert name="menu">
> >                               <unicomp:menu/>
> >                       </ui:insert>
> >                       <ui:insert name="content">
> >                               ${pageContext.request.contextPath}
> >                       </ui:insert>
> >               </body>
> >       </f:view>
> > </html>
> >
> >
> > I have absolute no idea where to start debugging, as this issue seems to
> > be related with the tomcat version !?
> >
> > Any suggestions ?
> >
> > Regards
> >
> > Ronald
> >
> >
> >
> >
> >
> >
> >
> >
>
> --
> *****************************************************************
> *M-UniComp Verkehrssysteme GmbH
> *
> *Dipl.-Ing. Ronald Müller
> *Softwareentwicklung
> *
> *Plauener Straße 163-165, Haus 11
> *13053 Berlin
> *
> *fon   : +49 ( 0 ) 30  / 98 31 700 70
> *fax   : +49 ( 0 ) 30  / 98 31 700 77
> *mobil : +49 ( 0 ) 172 / 93 95 004
> *email : r.mueller@unicomp-berlin.de
> *web   : www.unicomp-berlin.de
> *
> *Geschaeftsfuehrer: Andreas Dreher
> *Sitz der Gesellschaft: Berlin
> *Registergericht: Berlin Amtsgericht Charlottenburg, HRB 35329
> *****************************************************************
>

Re: [Tomahawk] t:stylesheet renders link to an empty page

Posted by "R. Müller" <r....@unicomp-berlin.de>.
just tested tomcat-5.5.23 and everything works fine there.
is there any myfaces / tomahawk related change between tomcat 5.5.23 and
5.5.24 ?

regards

Ronald


R. Müller schrieb:
> Hi,
> 
> I've just tested my webapp in different tomcat-versions.
> 
> So i've tested :
> 
> tomcat-5.0.27
> tomcat-5.5.20
> tomcat-5.5.24
> tomcat-6.0.16
> 
> So far everything works fine, but on tomcat-5.5.24 and tomcat-6.0.16 the
> link rendered by <t:stylesheet> links to an empty page, and so the page
> is not styled.
> 
> My environment is Linux, MyFaces Core 1.1.5, Tomahawk 1.1.5, Sandbox
> 1.1.7, Facelets 1.1.13. I also tried the latest Tomahawk SNAPSHOT (1.1.7).
> 
> This is the link rendered by <t:stylesheet> :
> 
> <link rel="stylesheet" type="text/css"
> ref="/MyApp/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/12126727/stylesheet.TextResourceFilterProvider//css/header.css"
> />
> 
> (looks similar in every tomcat-version ...)
> 
> If i request the URL - i get an absolute empty page but with the right
> mime-type "text/css". Requesting the css-file directly (not using the
> MyFacesResourceLoader) works fine ('/MyApp/css/header.css').
> 
> All the other resources, which are served by the extension-filter
> working fine (scripts , etc.).
> 
> The stylesheet-tag is used inside a facelets-template :
> 
> <ui:composition template="/WEB-INF/templates/layout.xhtml">
> 
> ...
> 
> The template looks like this :
> 
> <html 	xmlns="http://www.w3.org/1999/xhtml"
> 	xmlns:ui="http://java.sun.com/jsf/facelets"
> 	xmlns:h="http://java.sun.com/jsf/html"
>       	xmlns:f="http://java.sun.com/jsf/core"
>       	xmlns:t="http://myfaces.apache.org/tomahawk"
>       	xmlns:unicomp="http://www.unicomp-berlin.de/jsf/facelets">
>       	
> 	<f:view contentType="text/html">
> 
> 	    <f:loadBundle basename="i18n.messages" var="i18n"/>
> 		<head>
> 		<meta http-equiv="Content-Type" 	content="application/xhtml+xml;
> charset=UTF-8"/>
> 		<title>
> 		<ui:insert name="title">
> 		</ui:insert>
> 		</title>
> 		<link rel="shortcut icon" type="image/x-icon"
> href="#{facesContext.externalContext.requestContextPath}/favicon.png" />
> 		<t:stylesheet path="/css/generell.css" filtered="true"/>
> 		<t:stylesheet path="/css/lists.css" filtered="true"/>
> 		<t:stylesheet path="/css/header.css" filtered="true"/>
> 		</script> -->
> 		<script type="text/javascript">
> 			function init() {
> 			}
> 		</script>
> 		<style type="text/css">
> 			.menu {
> 			 padding:10px;
> 			}
> 		</style>
> 		</head>
> 		
> 		<body onload="init()">
> 			<ui:insert name="header">
> 				<ui:include src="header.xhtml" />
> 			</ui:insert>
> 			<ui:insert name="menu">
> 				<unicomp:menu/>
> 			</ui:insert>
> 			<ui:insert name="content">
> 				${pageContext.request.contextPath}
> 			</ui:insert>
> 		</body>
> 	</f:view>
> </html>
> 
> 
> I have absolute no idea where to start debugging, as this issue seems to
> be related with the tomcat version !?
> 
> Any suggestions ?
> 
> Regards
> 
> Ronald
> 
> 
> 
> 
> 
> 
> 
> 

-- 
*****************************************************************
*M-UniComp Verkehrssysteme GmbH
*
*Dipl.-Ing. Ronald Müller
*Softwareentwicklung
*
*Plauener Straße 163-165, Haus 11
*13053 Berlin
*
*fon   : +49 ( 0 ) 30  / 98 31 700 70
*fax   : +49 ( 0 ) 30  / 98 31 700 77
*mobil : +49 ( 0 ) 172 / 93 95 004
*email : r.mueller@unicomp-berlin.de
*web   : www.unicomp-berlin.de
*
*Geschaeftsfuehrer: Andreas Dreher
*Sitz der Gesellschaft: Berlin
*Registergericht: Berlin Amtsgericht Charlottenburg, HRB 35329
*****************************************************************