I am going through the article on JSF LifeCycles. I have the following doubt.
- In many phases, the Response Complete is happening. How it is happening in
the middle of the life cycle. Can anyone explain it in detail?
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.
Quoting from the JSF 2.0 spec:
Calling ExternalContext.redirect(String) in a JSF servlet application causes a 302 response to be sent to the browser via the underlying API. In this case, it would be an error (or at least futile) to emit data in the response body, so
ExternalContext.redirect(String)callsresponseComplete().