This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

All components in RenderPhaseListener  RSS feed

Dan Dubinsky
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.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!