I’m writing custom JSF 2.0 components. Is there way to step through each of the phases in a lifecycle with a debugger?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Put a breakpoint on the
execute()method of theLifecycleimplementation of your JSF implementation. It’s there where each phase of the JSF lifecycle expect of the render response will be executed. To hook on render response as well, put another beakpoint onrender()method of the sameLifecycleimplementation.In Mojarra, the
Lifecycleimplementation is thecom.sun.faces.lifecycle.LifecycleImplclass. It’s open source (so is MyFaces), you can download the source at the vendor’s homepage such as http://javaserverfaces.java.net.