Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF phaseListener

 
evelyn ong
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My phaselistener is being trigger twice, and 2nd time, the viewId was rendered wrongly.
Example:

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
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where are you putting your <f:phaseListener> tag at?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic