Messages not shown after forward

UI Components for JSF
Post Reply
jmcollin92
Posts: 145
Joined: 05 Nov 2009, 22:32

29 Nov 2009, 12:25

Hello Primefaces's users,

I got a controller that put a message in the JSFContext, and then forward to a new page.
The message is not displayed (with p:growl).
Is it normal ?
If yes what is the best way to show messages after a forward or a redirect ?

Thank's for all...
----
Primefaces 2.0.1-SNAPSHOT
JBoss 6.0.0-M2
Mojorra 2.0.2
---

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

02 Dec 2009, 16:25

Hi, you'll lose the messages if you use redirect with JSF 1.2.

Forward should work though, can you provide the code where you add messages and how you use p:growl?

What does p:growl render?

jmcollin92
Posts: 145
Joined: 05 Nov 2009, 22:32

03 Dec 2009, 21:20

cagatay.civici wrote: Hi, you'll lose the messages if you use redirect with JSF 1.2.
...
What does p:growl render?
OK. Thank's for the answer. That's what I thought. I will store message in the session and call it back with a PhaseListener before displaying new page.
p:growl don't display anuthing after à redirect.
----
Primefaces 2.0.1-SNAPSHOT
JBoss 6.0.0-M2
Mojorra 2.0.2
---

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 13 guests