Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PhaseListener for one Page

 
Shruti B
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All:

How can i make a phase listener, page scoped.
i.e i want it to be called only for a particular page.
getviewId() --> does not give me the wanted result.
It always gives me the previous URL.

Please Help.

Thanks and Regards,
Shruti
 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wonder if writing a PhaseListener for the sake of one page is the best solution, but to answer your question: try using the following listener to understand what is going on:

When does the view id change?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic