dcsimg
Facelets + CSS problem
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Paul_Speijers
Posted On:   Monday, April 2, 2007 05:32 AM

In every page of my webapplication I'm using facelets layout page which includes a stylesheet. In order to include the stylesheet I've tried the following options: Determining the absolute path using a JSF expression: And by using the tomahawk stylesheet tag: I'm using an index.jsp page which forwards to the first page of my webapplication using: However, I encounter the following problem: When I access the index.jsp page it forwards to the selectbicycle.xhtml page and I see my page with the right layout. In other words, the CSS gets applied. However, after the next requests to other facelets pages (*.jsf gets mapped to *.x   More>>

In every page of my webapplication I'm using facelets layout page which includes a stylesheet. In order to include the stylesheet I've tried the following options:



Determining the absolute path using a JSF expression:





And by using the tomahawk stylesheet tag:





I'm using an index.jsp page which forwards to the first page of my webapplication using:




However, I encounter the following problem:
When I access the index.jsp page it forwards to the selectbicycle.xhtml page and I see my page with the right layout. In other words, the CSS gets applied.
However, after the next requests to other facelets pages (*.jsf gets mapped to *.xhtml), the CSS is not applied to the pages.



Can anyone help me with this? Thanks a lot.




			

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


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:t="http://myfaces.apache.org/tomahawk">


basename="com.infosupport.buyabike.common.message.messages" var="msg" />















none







   <<Less
About | Sitemap | Contact