boa noite galera, estou tendo dificuldade para criar uma master page no jsf 2.0 + primefaces
a pagina index.xhtml é minha master page(template)
<!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:p="http://primefaces.prime.com.tr/ui"
xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
</h:head>
<h:body>
<p:layout fullPage="true">
<p:layoutUnit position="top" height="120" style="background-color: Red;">
<ui:insert name="top"></ui:insert>
</p:layoutUnit>
<p:layoutUnit position="left" width="120" style="background-color: Green;">
<ui:insert name="left"></ui:insert>
</p:layoutUnit>
<p:layoutUnit position="center" style="background-color: Blue;">
<ui:insert name="center"></ui:insert>
</p:layoutUnit>
</p:layout>
</h:body>
</html>
quando vou chamar a minha master page, em outra pagina nao consigo, a pagina que vai receber meu padrão da master page
pagina2.xhtml
<?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">
<ui:composition template="/index.xhtml">
<ui:define name="top">kkkk</ui:define>
<ui:define name="left">wwwww</ui:define>
<ui:define name="center">ooooo</ui:define>
</ui:composition>
</html>
se alguem puder me ajudar, agradeço