Estou com um problema com o <p:growl> do PrimeFaces 3.2, ele só aparece quando uso um <p:commandButton > com ajax=false
e quando uso o <p:commandButton com ajax=true e coloco um update=":growl" o msm não executa nenhuma ação
ja testei com os fontes do proprio http://www.primefaces.org/showcase/ui/growl.jsf e continua nao aparecendo… alguem sabe como resolver isso?
><?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:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui"
xmlns:f="http://java.sun.com/jsf/core">
<h:head>
<title><ui:insert name="title" /></title>
<link href="#{facesContext.externalContext.requestContextPath}/resources/css/template.css" rel="stylesheet" type="text/css" />
</h:head>
<h:body>
<f:view contentType="text/html">
<h:form>
<p:growl id="growl" showDetail="true" sticky="true" />
<p:panel header="Growl">
<p:commandButton value="Save" actionListener="#{teste.teste}" update="growl" />
</p:panel>
</h:form>
</f:view>
</h:body>
</html>
onde no controller Teste
public void teste(ActionEvent actionEvent){
FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_INFO, "TESTE", "TESTE1");
FacesContext.getCurrentInstance().addMessage(null, facesMsg);
}
######### SOLUÇÃO ##########
Atualizei as seguintes dependencias e funcionou
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>2.1.7</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
<version>2.1.7</version>
<scope>compile</scope>
</dependency>