Boa tarde!
Estou com um problema na minha pagina xhtml. Ela não acha o meu css…
Estou fazendo da seguinte forma:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//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:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets">
<f:loadBundle basename="messages" var="message" />
<head>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/estilo.css"/>
</head>
<body>
<table class="table_template">
<thead>
<tr>
<td>
<ui:insert name="external_header">Header</ui:insert>
</td>
</tr>
</thead>
<tbody>
<tr>
<td>
<ui:insert name="external_body">Body</ui:insert>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>
<ui:insert name="external_footer">Footer</ui:insert>
</td>
</tr>
</tfoot>
</table>
</body>
</html>
Quando executo e vejo o codigo fonte o link do css aparece assim:
<link rel="stylesheet" type="text/css" href="/css/estilo.css" />
Esse e meu template do facelets. Alguem sabe oq esta errado??