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 : [EMAIL PROTECTED]
*web   : www.unicomp-berlin.de
*
*Geschaeftsfuehrer: Andreas Dreher
*Sitz der Gesellschaft: Berlin
*Registergericht: Berlin Amtsgericht Charlottenburg, HRB 35329
*****************************************************************

Reply via email to