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

All components in RenderPhaseListener  RSS feed

 
Dan Dubinsky
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

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.

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