Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

PhaseListener in JSF  RSS feed

 
Syed Saifuddin
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi EveryBody

How many PhaseListener is allowed in 1 JSF application. If more then 1 PhaseListener is allowed then all will call on each phase change

Thank You
Syed Saifuddin
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes you can have more than one PhaseListener and they will all be called, and in order that they are declared in the xml.

Mark
 
Syed Saifuddin
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mark Spritzler

Can you tell me exactly where we really need it(PhaseListener).
And on performance it will badly effect or its very light weight
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Syed Saifuddin:
Hi Mark Spritzler

Can you tell me exactly where we really need it(PhaseListener).
And on performance it will badly effect or its very light weight


Heavy weight or light weight depends on what code you put in the listener.

Mark
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!