no xhtml!

0 respostas
T

Boa noite pessoal!

Curto e grosso...

As minhas xhtmls estão cheias desse   que insiste em aparecer!

Estão destruindo as minhas telas e eu não consigo achar o motivo... Pesquisei e pesquisei e nada...

Segue a estrutura do meu projeto que peguei desse ótimo site: http://uaihebert.com/aplicacao-web-completa-jsf-ejb-jpa-jaas/1/

E segue um trecho da tela...

<?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" xml:lang="pt-br" lang="pt-br"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<title>DETG0001_WEB</title>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	<meta http-equiv="content-language" content="pt" />
	<h:outputStylesheet library="css" name="main.css" />
</h:head>

<h:body>

    <h:form>

		<h:panelGrid id="pnlgBtn"
			style="background-color: #3672B3; width: 50%;" cellspacing="5"
			columns="2">
		
		 <p:commandButton id="cmdLimpar" action="inserirPessoa"
				value="#{msgs.LIMPAR}" />
		 <p:commandButton id="cmdSalvar" action="inserirPessoa"
				value="#{msgs.SALVAR}" />

		</h:panelGrid>

		<h:panelGrid id="pnlgCad"
			style="background-color: #E4E9F0; width: 50%;" cellspacing="5"
			columns="3">

			<div>
				<p:outputLabel id="otNome" value="#{msgs.FDO_NOME}" />
				<p:inputText id="itNome" size="30" maxlength="30"
					value="#{pessoaMB.pessoa.nmPessoa}" />
				<p:message for="itNome" />
			</div>

		</h:panelGrid>

		<h:panelGrid id="pnlgTab"
			style="background-color: #E4E9F0; width: 50%;" cellspacing="5"
			columns="1">

        <p:dataTable id="tabelaPessoa" var="item"
				value="#{pessoaMB.listaPessoa}">

				<p:column id="clnAcoes" style="text-align: center;">
					<f:facet name="header">
                    	<h:outputText id="otAcoes" value="#{msgs.ACOES}" />
                	</f:facet>						

                    	<!-- Always save the id as hidden when you use a request scope MB -->
                   	 	<h:inputHidden value="#{item.idPessoa}" />
 
                    	<p:commandButton id="cmdAtualizar"
						value="#{msgs.ATUALIZAR}">
                       	<f:setPropertyActionListener
							target="#{pessoaMB.pessoa}" value="#{item}" />
                    	</p:commandButton>

                    	<p:commandButton id="cmdExcluir"
						value="#{msgs.EXCLUIR}">
                        <f:setPropertyActionListener
							target="#{pessoaMB.pessoa}" value="#{item}" />
                    	</p:commandButton>

            </p:column>
			
            <p:column>
                <f:facet name="header">
                    <h:outputText id="otfNome" value="#{msgs.NOME}" />
                </f:facet>
 	 			<p:outputLabel id="otcNome" value="#{item.nmPessoa}" />                
            </p:column>  
         
            

        </p:dataTable>

        <!-- This button is displayed to the user, just to you see the error msg  -->
       

		</h:panelGrid>
			
    </h:form>

</h:body>

</html>

Desde já, muito obrigado a todos!

Criado 5 de abril de 2014
Respostas 0
Participantes 1