Here is something I always seem to forget and never realy got to use :-)
Code to gain access to the HTTP session from a inside backing bean :
FacesContext fc = FacesContext.getCurrentInstance(); HttpServletRequest request = (HttpServletRequest)fc.getExternalContext().getRequest(); HttpSession session = request.getSession();
No comments :
Post a Comment