Hi

 

Actually I am trying to modify the offical myfaces-tiles-example loaded from http://www.marinschek.com/myfaces/tiki/tiki-pagehistory.php?page=Download&diff=15

 

After fixing a strange Bug with in the tiles.xml(a problem with the DTD, I fixed it by deleting the DTD) the app runs error free.

 

After that I tryed to change the extention mapping to path mapping. So I changed:

Web.xml

...

<servlet-mapping>

        <servlet-name>Faces Servlet</servlet-name>

        <url-pattern>*.jsf</url-pattern>

</servlet-mapping>....

To

...

<servlet-mapping>

        <servlet-name>Faces Servlet</servlet-name>

        <url-pattern>/faces/*</url-pattern>

</servlet-mapping>...

 

Index.jsp

 

<%@ page session="false"%>

<%

response.sendRedirect("/page1.jsf");

%>

To

<%@ page session="false"%>

<%

response.sendRedirect("/faces/page1.jsp");

%>

 

Now Tomcat tells me that he could not find the page: /faces/page1.jsp

So I create an index.html File looking like this

 

<html>

  <head>

  <meta http-equiv="Refresh" content="0;URL="">

  </head>

  <body>

 

  </body>

</html>

 

Then I change in the web.xml

 

....

<welcome-file-list>

        <welcome-file>index.jsp</welcome-file>

    </welcome-file-list>

....

To

....

<welcome-file-list>

        <welcome-file>index.html</welcome-file>

    </welcome-file-list>

 

Now it works, but ...here begins the problem unexplainable to me.

 

The css file now did not be found (/css/tiles.css) because tomcat looks for

<quote>

SCHWERWIEGEND: could not find tiles-definition with name /css/tiles.tiles

</quote>

So the net.sourceforge.myfaces.application.jsp.JspTilesViewHandlerImpl seems to change the extention of the included(by the <link> tag) css file.

 

Why he does?? And How to solve this Problem???

Reply via email to