Componente <p:GROWL /> não funciona na minha página

0 respostas
L

Boa noite pessoal,

Eu tenho uma página com o componente <p:growl/> do primefaces, que se eu executá-la isoladamente, funciona perfeito.

Esse componente não funciona quando eu incluo a mesma página dentro de um template. Alguém ja´ passou por isso ?

Peguei um exemplo deste componente no site do primefaces.org

página a ser incluída [mensagens.xhtml] :

<html xmlns=http://www.w3.org/1999/xhtml
xmlns:h=http://java.sun.com/jsf/html
xmlns:p=http://primefaces.prime.com.tr/ui >
<h:head>
<title>PrimeFaces 2.2.1</title>
</h:head>

<h:body>
<p:growl id=growl showDetail=true/>
<h:form>

<p:growl id=growl showDetail=true globalOnly=true sticky=true />

<p:panel header=Growl>
<h:panelGrid columns=2>
<p:calendar value=#{calendarBean.data1} mode=inline
onSelectUpdate=growl
selectListener=#{calendarBean.handleDateSelect}/>
</h:panelGrid>
</p:panel>

</h:form>
</h:body>
</html>

cliente template [template01.xhtml]:

<?xml version=1.0 encoding=UTF-8 ?>
<!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
xmlns:p=http://primefaces.prime.com.tr/ui
template=./template01.xhtml
xmlns:f=http://java.sun.com/jsf/core
xmlns:h=http://java.sun.com/jsf/html>

<ui:define name=title>
title
</ui:define>

<ui:define name=content>
<ui:include src=mensagens.xhtml></ui:include>
</ui:define>

</ui:composition>
Criado 21 de outubro de 2011
Respostas 0
Participantes 1