Olá amigos, bom dia.
Para quem está obtendo essa mensagem “Um ou mais recursos possuem o destino de ‘head’, mas nenhum componente de ‘head’ foi definido na exibição.” no JSF 2.0 deve atentar-se por informar a tag da forma exibida abaixo:
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core">
<h:head> <=
<title>Sistema XXX</title>
</h:head>
<h:body>
<f:view>
<h:form id="form" prependId="false">
<h:outputLabel value="xxxx" />
</h:form>
</f:view>
</h:body>
</h:form>
Se esta tag for informada como “<head>” apenas, esta não é interpretada.
Abs,
Lessandro