Bom dia galera, estou tentando configurar minhas páginas .xhtml dentro de diretórios porém não estou conseguindo acertar os endereços:
Vou ter o seguinte esquema:
/NomeDaAplicação/paginas/publico/login.xhtml
/NomeDaAplicação/template.xhtml
Meu web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Development</param-value>
</context-param>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.xhtml</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>paginas/publico/login.xhtml</welcome-file>
</welcome-file-list>
</web-app>
Minha tela login.xhtml:
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
template="/template.xhtml"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html">
<ui:define name="Conteudo">
<h2>Login</h2>
<h:form>
<h:panelGrid columns="2">
<h:outputLabel value="Usuário: "/>
<h:inputText />
<h:outputLabel value="Senha: "/>
<h:inputSecret />
<h:commandButton value="Login" />
</h:panelGrid>
</h:form>
</ui:define>
</ui:composition>
Não estou acertando chamar o template.xhtml, ai ele carrega somente a página sem a devida configuração do template "/