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?
A.
Set the immediate="true" attribute on the command button that was used to perform this call.
B.
Invoke the dispatch() method on the ExternalContext object.
C.
Invoke the setCurrentPhaseId(RENDER_RESPONSE) method on the FacesContext object.
D.
Invoke the responseComplete() method on the FacesContext object.
according to this page https://docs.oracle.com/javaee/6/tutorial/doc/bnaqq.html, on a redirect you should call responseComplete ( answer D )
upvoted 3 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
orjava
7 months agoLeoAlioth
2 years, 2 months ago