File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes When does JSF use or Post ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "When does JSF use or Post ?" Watch "When does JSF use or Post ?" New topic

When does JSF use or Post ?

Aravind Bhat
Ranch Hand

Joined: Jun 16, 2006
Posts: 32
I'm confused as to under what circumstances JSF uses get and when it uses POST . Under PRG , It's quite evident that JSF uses POST but when I try request.getMethod() in my phaseListener , It returns me GET . Is there any way I can force it to submit through POST ?

I got a reply from the forum that outputLink uses GET if it is a non phases request . But I guess a PhaseListener is inside the Phases lifecycle .

So what's the conclusion ? Kindly help with examples .

Regards ,
Alex Sotin

Joined: Dec 19, 2006
Posts: 21
Hi, can you please put here your code ?

<a href="" target="_blank" rel="nofollow">Java Planet</a> <br />-- <a href="" target="_blank" rel="nofollow">Java Index</a>
I agree. Here's the link:
subject: When does JSF use or Post ?
It's not a secret anymore!