wood burning stoves
The moose likes JSF and the fly likes JSF phaseListener Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF phaseListener" Watch "JSF phaseListener" New topic

JSF phaseListener

evelyn ong

Joined: Aug 03, 2010
Posts: 13
My phaselistener is being trigger twice, and 2nd time, the viewId was rendered wrongly.

When i navigate from Page1.jsf to Page2.jsf, in my phaselistener, the viewId when i printed out are:

Page2.jsf (1st time) -- correct view
Page1.jsf (2nd time) -- wrong view

And because the viewId for the phaselistener for 2nd time is wrong, my application flow was broken.

How can i set my phaselistener not to be trigger twice? I have tried to remove the face-config.xml under web.xml

Dennis Hopfer
Ranch Hand

Joined: Dec 02, 2010
Posts: 43
Where are you putting your <f:phaseListener> tag at?
I agree. Here's the link: http://aspose.com/file-tools
subject: JSF phaseListener
It's not a secret anymore!