Olá a todos, estou vendo alguns exemplos na internet de como gerar um layout no primefaces e encontrei a seguinte codificação
<?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:p="http://primefaces.prime.com.tr/ui"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
<title>eMemo</title>
<link rel="stylesheet" href="css/default.css" type="text/css"/>
</h:head>
<h:body style="font-size:11px; border: 0px">
<p:layout fullPage="true">
<p:layoutUnit position="north" size="100" style="border: 0px">
// codigo ....
</p:layoutUnit>
<p:layoutUnit position="west" size="210" style="border: 0px">
<h:form>
</h:form>
</p:layoutUnit>
<p:layoutUnit position="center" style="border: 0px">
<ui:insert name="conteudo"/> // AQUI É A INTERNA QUE IRA CHAMAR
</p:layoutUnit>
</p:layout>
</h:body>
</html>
Coloquei ela para rodar, pois gostaria de ver como seria seu funcionamento, contudo, ao executar o código ele não aparece nenhum componente na tela, apenas os dizeres
"// codigo ....
// AQUI É A INTERNA QUE IRA CHAMAR "
Como se não houvesse formatação alguma.
Tenho uma outra página com a seguinte codificação:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!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:p="http://primefaces.org/ui">
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Cadastro de Forma de Pagamento</title>
</h:head>
<h:body>
<h:form id="formIncluirFormaPagamentoo">
<p:panel header="Cadastro de Forma de Pagamento">
<p:outputLabel value="Descrição" for="descricao"/>
<p:inputText id="descricao" value="#{FormaPagamentoBean.formaPagamento.descricao}" maxlength="100" /> <br/>
<p:commandButton action="#{FormaPagamentoBean.createFormaPagamento()}" value="Gravar"/>
</p:panel>
</h:form>
</h:body>
</html>
Que quando rodo, aparece normalmente.
Alguém saberia me dizer o porque disso?
Agradeço desde já!