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()
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
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?
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)
{
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
5 matches
Mail list logo