tags:

views:

25

answers:

1

This

<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"&gt;

<h:outputStylesheet name="test.css" />

renders nothing. Do I have to add some configuration? The test.css is avaible in my resource folder.

+1  A: 

JSF injects stylesheets to either HTML head or body elements (head is the default, IIRC). For JSF to find head or body, you have to declare them as <h:head></h:head> and <h:body></h:body> (not plain <head></head> etc).

Tuukka Mustonen