Olá galera do GUJ!
Estou tendo um problema com o componente
Desta forma não funciona, aparece apenas uma caixa de texto, não abre o calendario na tela:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition template="/pages/templates/master.xhtml"
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">
<ui:define name="title">Vigie me - Seja bem vindo!</ui:define>
<ui:define name="content">
<h:form>
<p:calendar value="#{homeController.date}" />
</h:form>
</ui:define>
</ui:composition>
Se eu retiro o template e trabalho com
conteudo
funciona de boa.
<!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:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.prime.com.tr/ui" >
<head>
<title><ui:insert name="title">Vigie me</ui:insert></title>
</head>
<body>
<f:view contentType="text/html">
<div id="header">
<ui:insert name="header">
MENU ENTRA AQUI <br /> <br />
</ui:insert>
</div>
<div id="content">
<ui:insert name="content">
</ui:insert>
</div>
<div id="footer">
<ui:insert name="footer">
<br/><br/>
NOME DA EMPRESA E TALS
</ui:insert>
</div>
</f:view>
</body>
</html>
package br.com.vigieme.controller;
import java.util.Date;
import javax.faces.bean.ManagedBean;
@ManagedBean
public class HomeController {
private Date date;
public Date getDate() {
return date;
}
public void setDate(Date date) {
this.date = date;
}
}
Alguem pode me ajudar nessa?
