I have built a small JSF / Facelets application - MyFaces 1.2, Faclets 1.1.14, Tomahawk, RichFaces under Eclipse Ganymede, JDK 1.5, Tomcat 6 under Intel Mac. When I include the stylesheet in my template (header):
<link rel="stylesheet" type="text/css" href="../template/vnStyle.css" />
I get the following exception:
Oct 21, 2008 11:18:14 PM com.sun.facelets.FaceletViewHandler handleRenderException
SEVERE: Error Rendering View[/template/vnStyle.css]
com.sun.facelets.FaceletException: Error Parsing /template/vnStyle.css: Error Traced[line: 2] Content is not allowed in prolog.
at com.sun.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:234)
at com.sun.facelets.compiler.Compiler.compile(Compiler.java:105)
I haven't found much help on the internet. My style-sheet is saved under UTF-8 (no BOM). I tried different encodings but non of them helped. I even examined the file with a hex editor but there is no 3-Byte BOM at the beginning of the file.
Anyway, I don't really understand why the template compiler is interested in the stylesheet at the time of compiling!?
However, I don't have a clue here. I also tried different Eclipse settings but without any success. I hope you can help.