Problema com Facelets e Primefaces

Olá, pessoal!
Estou desenvolvendo um aplicativo web usano facelets e primefaces. Estou usando componentes de menu e de tabviews na mesma página, só que acontece um erro muito estranho mostrado na imagem:

Segue o código do template.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:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link href="./resources/css/default.css" rel="stylesheet" type="text/css" />
        <link href="./resources/css/cssLayout.css" rel="stylesheet" type="text/css" />
        <title>Facelets Template</title>
    </h:head>
    
    <h:body>
        
        
        <div id="top" class="top">
               <center>
                <p:graphicImage value="imagens/banner.png" />
                </center>
        </div>
        <div>
            <div id="left">
                <h:form>
                    <p:menu type="sliding" maxHeight="125">  
                        <p:submenu label="Ajax Menuitems" icon="ui-icon ui-icon-refresh">  
                            <p:menuitem value="Save" actionListener="#{buttonBean.save}" update="messages" icon="ui-icon ui-icon-disk" />  
                            <p:menuitem value="Update" actionListener="#{buttonBean.update}" update="messages" icon="ui-icon ui-icon-arrowrefresh-1-w"/>  
                        </p:submenu>  
                        <p:submenu label="Non-Ajax Menuitem" icon="ui-icon ui-icon-newwin">  
                            <p:menuitem value="Delete" actionListener="#{buttonBean.delete}" update="messages" ajax="false" icon="ui-icon ui-icon-close"/>  
                        </p:submenu>  
                        <p:submenu label="Navigations" icon="ui-icon ui-icon-extlink">  
                            <p:submenu label="Prime Links">  
                                <p:menuitem value="Prime" url="http://www.prime.com.tr" />  
                                <p:menuitem value="PrimeFaces" url="http://www.primefaces.org" />  
                            </p:submenu>  
                            <p:menuitem value="TouchFaces" url="#{request.contextPath}/touch" />  
                        </p:submenu>  
                    </p:menu>  
                </h:form>
            </div>
            <div id="content" class="left_content">
                <ui:insert name="content">Content</ui:insert>
            </div>
        </div>
    </h:body>
    
</html>

E do cadastrarModelos.xhtml


<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="templates/template.xhtml">
        <ui:define name="content">
            <h:head>
                <title>Cadastrar Modelos</title>
            </h:head>
            <h:body>
                <p:tabView>

                    <p:tab title="Godfather Part I">
                        <h:panelGrid columns="2" cellpadding="10">
                            <p:graphicImage value="/images/godfather/godfather1.jpg" />
                            <h:outputText
                                value="The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding.
				His beloved son Michael has just come home from the war, but does not intend to become part of his father's business. T
				hrough Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family, kind and benevolent to those who give respect,
				but given to ruthless violence whenever anything stands against the good of the family." />
                        </h:panelGrid>
                    </p:tab>

                    <p:tab title="Godfather Part II">
                        <h:panelGrid columns="2" cellpadding="10">
                            <p:graphicImage value="/images/godfather/godfather2.jpg" />
                            <h:outputText value="Francis Ford Coppola's legendary continuation and sequel to his landmark 1972 film, The_Godfather, parallels the young Vito Corleone's rise with his son Michael's spiritual fall, deepening The_Godfather's depiction of the dark side of the American dream.
			In the early 1900s, the child Vito flees his Sicilian village for America after the local Mafia kills his family. Vito struggles to make a living, legally or illegally, for his wife and growing brood in Little Italy,
			killing the local Black Hand Fanucci after he demands his customary cut of the tyro's business. With Fanucci gone, Vito's communal stature grows."/>
                        </h:panelGrid>
                    </p:tab>

                    <p:tab title="Godfather Part III">
                        <h:panelGrid columns="2" cellpadding="10">
                            <p:graphicImage value="/images/godfather/godfather3.jpg" />
                            <h:outputText value="After a break of more than 15 years, director Francis Ford Coppola and writer Mario Puzo returned to the well for this third and final story of the fictional Corleone crime family.
				Two decades have passed, and crime kingpin Michael Corleone, now divorced from his wife Kay has nearly succeeded in keeping his promise that his family would one day be completely legitimate."/>
                        </h:panelGrid>
                    </p:tab>

                </p:tabView>

            </h:body> 
        </ui:define>

    </ui:composition>

</html>

Ainda não consegui solução pra esse erro, quem puder ajudar eu agradeço! =D

Alguém tem alguma idéia do que pode estar acontecendo?

o erro que vc ta falando é aquele monte de XXXXXXX na tab ?

É sim, esse mesmo! Sabe como resolver? =D

seu menu ta estragando o layout

template.xhtml

<!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:ui="http://java.sun.com/jsf/facelets"  
      xmlns:h="http://java.sun.com/jsf/html"  
      xmlns:p="http://primefaces.prime.com.tr/ui"  
      xmlns:f="http://java.sun.com/jsf/core">  

    <h:head>  
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
        <link href="./resources/css/default.css" rel="stylesheet" type="text/css" />  
        <link href="./resources/css/cssLayout.css" rel="stylesheet" type="text/css" />  
        <title>Facelets Template</title>  
    </h:head>  

    <h:body> 
        <div id="top" class="top">  
            <center>  
                <p:graphicImage value="imagens/banner.png" />  
            </center>  
        </div>   
        <div id="content" class="center_content">  
            <ui:insert name="content">Content</ui:insert>  
        </div> 
    </h:body>  

</html>  

cadastroModelo.xhtml

<!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="./Template2.xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.prime.com.tr/ui"  
                xmlns:f="http://java.sun.com/jsf/core"> 

    <ui:define name="content">
 
         <h:head>  
                 <title>Cadastrar Modelos</title>  
             </h:head>  
             <h:body>  
                       <h:form>  
                 <p:tabView>  
   
                     <p:tab title="Godfather Part I">  
                         <h:panelGrid columns="2" cellpadding="10">  
                             <p:graphicImage value="/images/godfather/godfather1.jpg" />  
                             <h:outputText  
                                 value="The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding.  
                 His beloved son Michael has just come home from the war, but does not intend to become part of his father's business. T  
                 hrough Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family, kind and benevolent to those who give respect,  
                 but given to ruthless violence whenever anything stands against the good of the family." />  
                         </h:panelGrid>  
                     </p:tab>  
   
                     <p:tab title="Godfather Part II">  
                         <h:panelGrid columns="2" cellpadding="10">  
                             <p:graphicImage value="/images/godfather/godfather2.jpg" />  
                             <h:outputText value="Francis Ford Coppola's legendary continuation and sequel to his landmark 1972 film, The_Godfather, parallels the young Vito Corleone's rise with his son Michael's spiritual fall, deepening The_Godfather's depiction of the dark side of the American dream.  
             In the early 1900s, the child Vito flees his Sicilian village for America after the local Mafia kills his family. Vito struggles to make a living, legally or illegally, for his wife and growing brood in Little Italy,  
             killing the local Black Hand Fanucci after he demands his customary cut of the tyro's business. With Fanucci gone, Vito's communal stature grows."/>  
                         </h:panelGrid>  
                     </p:tab>  
   
                     <p:tab title="Godfather Part III">  
                         <h:panelGrid columns="2" cellpadding="10">  
                             <p:graphicImage value="/images/godfather/godfather3.jpg" />  
                             <h:outputText value="After a break of more than 15 years, director Francis Ford Coppola and writer Mario Puzo returned to the well for this third and final story of the fictional Corleone crime family.  
                 Two decades have passed, and crime kingpin Michael Corleone, now divorced from his wife Kay has nearly succeeded in keeping his promise that his family would one day be completely legitimate."/>  
                         </h:panelGrid>  
                     </p:tab>  
   
                 </p:tabView>  
              </h:form>
             </h:body>   
        
        
    </ui:define>

</ui:composition>

coloca seu menu em uma pagina separada, corrige os erros dele e depois acrescenta ele no template, ou faz com menu horizontal.
:slight_smile:

Olá, amigo! Obrigada pela resposta! Eu achei uma alternativa para o problema:

É só modificar aqui:
<p:tabView id=“tabView” style=“display: inline-block; width: 99%”>


<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="templates/template.xhtml">
        <ui:define name="content">
            <h:head>
                <title>Cadastrar Modelos</title>
            </h:head>


            <h:form style="width: 870px">
                <p:tabView id="tabView" style="display: inline-block; width: 99%">
                    <p:tab title="Tab One">
                        <h:outputText value="Lorem" />
                    </p:tab>
                    <p:tab title="Tab Two">
                        <h:outputText value="Ipsum" />
                    </p:tab>
                    <p:tab title="Tab Three">
                        <h:outputText value="Dolor" />
                    </p:tab>
                </p:tabView>

            </h:form>


        </ui:define>

    </ui:composition>

</html>