Re: HttpServletResponse

2012-08-27 Thread Marco de Booij
Hello, Thank you for the idea. It crossed my mind too but I was to much focussed on the HttpServletResponse side. In the same bean I also set all information about the PDF in the HttpServletResponse. But with your idea I will give up the idea to put everything in a bean. I think that I will

Re: HttpServletResponse

2012-08-27 Thread Jean-Louis MONTEIRO
rong?). I make it a remote bean so I can define it with an @EJB > annotation or through a JNDI lookup. This does not work because the > FacesContext is null: > HttpServletResponse response = (HttpServletResponse) FacesContext.* > *getCurrentInstance().**getExternalContex

HttpServletResponse

2012-08-26 Thread Marco de Booij
t a remote bean so I can define it with an @EJB annotation or through a JNDI lookup. This does not work because the FacesContext is null: HttpServletResponse response = (HttpServletResponse) FacesContext.getCurrentInstance().getExternalContext().getResponse(); I tried to find how to get the