Re: Distinguish if parameters are sent by POST or GET

2015-03-19 Thread Georg Füchsle
Hallo Volker This worked! Thank You. Georg 2015-03-18 18:36 GMT+01:00 Volker Weber v.we...@inexso.de: Hi Georg, in ServletContext you can use HttpServletRequest.getMethod(): ((HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest()).getMethod()

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?

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 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 giofy...@googlemail.com: Hallo Max, Thanks for