problem with templates and stylesheets

Hello.

Just started working on a jsf project. I have made a template which includes a stylesheet. But if I create a jsf page in a different folder than the defaultfolder and I make it extend the template with ../layout/template.xhtml my template cant find the css file. Is there a workaround for that and how?

Cind regards.

Ole Bille

www.cogos.dk

[377 byte] By [Cogos.dk_Olea] at [2007-11-27 10:40:04]
# 1

The Tomahawk component library includes a stylesheet component that will handle this problem. Alternatively you can get the context root of your application via #{facesContext.externalContext.requestContextPath} and make the CSS reference absolute. A third approach is to set the document base URI (http://www.w3.org/TR/html4/struct/links.html#edef-BASE) in the template.

RaymondDeCampoa at 2007-7-28 19:04:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...