Boa tarde!
Tenho uma p:tabView com várias p:tab. Dentro de cada p:tab quer carregar uma página *.xhtml. Tentei usar Facelets mas não deu certo. Quando entro na página principal não carrega as páginas *.xhtml dentro das p:tab.
Segue abaixo o código que estou usando:
inicio.xhtml:
<p:tabView effect="opacity" effectDuration="normal" style="width:100%;">
<p:tab title="Limite" >
<h:panelGrid columns="1" cellpadding="10">
<div id="limit">
<ui:insert name="limite" />
</div>
</h:panelGrid>
</p:tab>
...
</p:tabView>
formulario.xhtml: Essa página deve ser carregada dentro da tab da página início.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:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.prime.com.tr/ui">
<ui:composition template="/paginas/inicio.xhtml">
<ui:define name="limite">
<f:view>
...
</f:view>
</ui:define>
</ui:composition>
</html>
Att,