p:tree event with growl output

UI Components for JSF
Post Reply
Meex
Posts: 22
Joined: 16 Dec 2009, 20:29

16 Dec 2009, 20:45

Hi community,

I got a p_growl and a p:tree component in my .xhtml
<p:growl id="messages" life="3000" />
<p:tree value="#{masterDataBean.model}" toggleMode="async" expanded="true" cache="false" expandAnim="FADE_IN" collapseAnim="FADE_OUT" nodeSelectListener="#{masterDataController.onNodeSelect}"></p:tree>

Now I want to output a message within the onNodeSelect Methode: FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_WARN, "Test", null));

Put the Message shows not up?

I'm using JSF 2.0

regards
Meex

Meex
Posts: 22
Joined: 16 Dec 2009, 20:29

16 Dec 2009, 21:51

ok, I read the other topics in this forum ;-)
After downloading latest build, this works with the update attribute

Meex

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

18 Dec 2009, 12:05

Yes, it's a feature that's added recently. :)

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 35 guests