2006/4/29, Craig McClanahan <craigmcc@apache.org>:
>
> You also have to remember that your listener is going to receive
> beforePhase() calls for *all* simultaneously active requests, not just the
> one page you might be interested in. And, don't forget to deregister
> yourself as a listener when the request completes, so you don't create a
> memory leak.
>
The Faces servlet acts like the Action servlet, and every request goes to it
to go through the 6-phase lifecycle before they are forwarded to the JSP.
Is that the reason why my listener receives beforePhase() calls for *all*
simultaneously active requests?
--
Wang Zeng
|