Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - 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:

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
13 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
15 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
4 days ago
D) Invoke the responseComplete() method on the FacesContext object.
upvoted 0 times
...
Leila
8 days ago
A) Set the immediate=''true'' attribute on the command button that was used to perform this call.
upvoted 0 times
...
...
Wava
16 days ago
But what about option B, invoking the dispatch() method on the ExternalContext object?
upvoted 0 times
...
Margarett
18 days ago
I agree with Izetta, invoking responseComplete() method will correctly complete the JSF life cycle.
upvoted 0 times
...
Kendra
22 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
15 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
21 hours ago
C) Invoke the setCurrentPhaseId(RENDER_RESPONSE) method on the FacesContext object.
upvoted 0 times
...
Dominga
3 days ago
B) Invoke the dispatch() method on the ExternalContext object.
upvoted 0 times
...
Emelda
24 days ago
A) Set the immediate=''true'' attribute on the command button that was used to perform this call.
upvoted 0 times
...
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77