This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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?
It is sorta covered in the JavaRanch Style Guide.
subject: JSF phaseListener
Similar Threads
Creating a custom scope... (kinda long)
JSF Filter prevent direct access certain page
help for jsf
navigation issue
Liferay Portlet with JSF Portlet bride-Problem