This example demonstrates the use of a
PhaseListener
which is set in the web.xml file. It also includes a component tree renderer which is also a PhaseListener
. Facelets includes a component renderer for debugging purposes. You must include the <ui:debug/>
tag in your xhtml file to use it.Note: The component renderer for debugging components has a Javascript error which was introduced in Facelets 1.1.12 through 1.1.14 which will not render the Component tree. You must use either Facelets 1.1.11 or 1.1.15.B1 to have the component tree render.
Here is the sample code on Bitbucket: JSFPhaseListeners
So this logs before and after every phase?
ReplyDeleteRandy
Yes. The PhaseListener intercepts all phases. After that you decide on which phases to take action on, if any.
ReplyDeleteHow do I download the code to this example?
ReplyDeleteThe link you have redirects me to login but I see no where to create an account.
Please advise. Thanks
Google moved from Google Web to Google Sites, and broke the links. It is fixed now.
ReplyDelete