Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Oracle Exam 1Z0-900 Topic 7 Question 104 Discussion

Actual exam question for Oracle's 1Z0-900 exam
Question #: 104
Topic #: 7
[All 1Z0-900 Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Mabel
20 hours ago
D is the way to go. We don't want JSF to keep processing the life cycle when we've already redirected the user to a different page.
upvoted 0 times
...
Izetta
14 days ago
I don't think that's the correct action, as per my understanding, responseComplete() method is the way to go.
upvoted 0 times
...
Alayna
16 days ago
Haha, I bet the exam writer is trying to trick us with these options. Gotta stay on our toes, folks!
upvoted 0 times
Ma
5 days ago
D) Invoke the responseComplete() method on the FacesContext object.
upvoted 0 times
...
Leila
9 days ago
A) Set the immediate=''true'' attribute on the command button that was used to perform this call.
upvoted 0 times
...
...
Wava
17 days ago
But what about option B, invoking the dispatch() method on the ExternalContext object?
upvoted 0 times
...
Margarett
19 days ago
I agree with Izetta, invoking responseComplete() method will correctly complete the JSF life cycle.
upvoted 0 times
...
Kendra
23 days ago
Hmm, interesting. I was going to say C, but now I'm not so sure. D does make the most sense if we're redirecting to another URL.
upvoted 0 times
Rosendo
16 days ago
A) Set the immediate=''true'' attribute on the command button that was used to perform this call.
upvoted 0 times
...
...
Izetta
1 months ago
I think the correct action is to invoke the responseComplete() method on the FacesContext object.
upvoted 0 times
...
Francesco
1 months ago
I think the correct answer is D. The responseComplete() method tells JSF that the request handling is complete, and it shouldn't continue with the life cycle.
upvoted 0 times
Amos
2 days ago
C) Invoke the setCurrentPhaseId(RENDER_RESPONSE) method on the FacesContext object.
upvoted 0 times
...
Dominga
4 days ago
B) Invoke the dispatch() method on the ExternalContext object.
upvoted 0 times
...
Emelda
25 days ago
A) Set the immediate=''true'' attribute on the command button that was used to perform this call.
upvoted 0 times
...
...

Save Cancel