Re: Distinguish if parameters are sent by POST or GET

2015-03-18 Thread Volker Weber
Hi Georg, in ServletContext you can use HttpServletRequest.getMethod(): ((HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest()).getMethod() regards, Volker 2015-03-18 15:46 GMT+01:00 Georg Füchsle : > Hallo Max, > > Thanks for replying. My attempt di

Re: Distinguish if parameters are sent by POST or GET

2015-03-18 Thread Georg Füchsle
Hallo Max, Thanks for replying. My attempt did not work: I want distinguish GET and POST inside a PhaseListener. In the PhaseListener I receive the FacesContext from the PhaseEvent. I also tried to receive the FacesContext from static: public void beforePhase(PhaseEvent event) {

Re: Distinguish if parameters are sent by POST or GET

2015-03-18 Thread Max Starets
Georg, Have you tried isPostback() on FacesContext? If you are not including view state as one of the parameters, it will return false for GET requests. Max On 3/18/2015 9:19 AM, Georg Füchsle wrote: Hallo! Is it possible to see if a parameter read in my jsf-app was sent by post or by get?

Distinguish if parameters are sent by POST or GET

2015-03-18 Thread Georg Füchsle
Hallo! Is it possible to see if a parameter read in my jsf-app was sent by post or by get? My webapp should be startet calling a starturl with some post parameters. I would like to forebid the use of get parameters. is it possible? thanks Gio