Java EE 7 Application Developer — Question 36

When handling a JSF request, your application code decided to redirect the call to another URL by using HTTP redirect. Which action should you take to correctly complete the handling of the JSF life cycle?

Answer options

Correct answer: C

Explanation

The correct answer is C because invoking setCurrentPhaseId(RENDER_RESPONSE) ensures that the JSF life cycle is aware of the redirect and prepares the response accordingly. The other options either do not pertain to completing the lifecycle correctly or are not relevant to the context of handling a redirect.