I'm using MyFaces with JSPs and I'm trying to find a way to code a "page requested" event where a listener gets notified whenever a page is requested. It would be sort of like doGet in a servlet. I tried some variations of a Render Phase Listener and it seems to work, but sometimes there are no components in the UIViewRoot of the page when the event fires. It looks like the first time I go to the page the tree is empty and then after that it's OK.
Is there some way to have a event that gets fired:
1) Every time a page gets requested via a post or a get. 2) Always has the component tree for the page fully built when the event gets fired. 3) Works in JSP pages.