• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF Phase Listener????  RSS feed

 
mano ranjan
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can anybody explain me what is phase listener in JSF,and what for this listener is used for with some examples...

thanks
mano.
 
Bob Good
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A phase listener is a type of plug in to allow you application to be invoked during the java server faces request life cycle.
You can invoke custom processing before or after a particular phase.
Here is a sample that is invoked before and afetr the RESTORE_VIEW lifecycle stage.




You also need to set up in faces config:

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!