-3

I have simple h:commnadButton den how to know that this is get or post method?
Or how to differentiate the get and post method in jsf page?

user3800551
  • 27
  • 1
  • 3
  • That has more to do with http rather than JSF.. Anyway, have a look at [this](http://stackoverflow.com/questions/13070537/difference-between-hbutton-and-hcommandbutton) – Aritz Jul 09 '14 at 09:57
  • @XtremeBiker Whether h:commandButton does a GET or a POST is 100% a JSF question, as your own citation shows. – user207421 Jul 09 '14 at 10:34
  • 1
    @EJP in fact, it is, but firstly I would begin looking at what `h:commandButton` generates at client side. Once there, you'll be able to understand if it is a GET or a POST request. Web frameworks are great tools, but most of the problems start when people learn them without worrying about what they are doing behind. That was the point of my comment. Anyway, your answer is OK – Aritz Jul 09 '14 at 10:50

1 Answers1

1

h:commandButton causes a POST.

I've never found a JSF situation where I needed to know in the page whether the request was a GET or a POST, but it's available in EL via the 'request' object.

user207421
  • 305,947
  • 44
  • 307
  • 483