• Post Reply Bookmark Topic Watch Topic
  • New Topic

Multiple PhaseListeners for same Phase

 
Viktor Lieskovsky
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have trouble using more than one PhaseListener for a single Phase. I now have two PhaseListeners registered for RENDER_RESPONSE phase, and they do not work simultaneously. Only one of them works, depending on the order by which they are registered in faces-config.xml

Here goes the faces-config excerpt:



In this configuration, only the second one's beforePhase() method gets called, and it looks like the first one was not registered. When I change the order of them, again, whichever is second gets called normally, while the first one goes unnoticed.

Both of them are hooked to the RENDER_RESPONSE phase, using beforePhase().

If anybody has any clue as to what causes this behavior, I would be very grateful, because I'm stuck. Thanks in advance.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!