This content has been marked as final.
Show 3 replies
-
1. Re: Getting an attribute from HttpSession into a SFSB seam c
amitev Jul 9, 2007 12:12 PM (in response to ector7280)One possible way is to let seam inject you the Faces contex. And then get the http session from there:
@In FacesContext fc; public void ....() { HttpSession session = (HttpSession) fc.getExternalContext().getSession(..); }
-
2. Re: Getting an attribute from HttpSession into a SFSB seam c
dustismo Jul 9, 2007 12:40 PM (in response to ector7280)Or:
Contexts.getSessionContext().get()
-
3. Re: Getting an attribute from HttpSession into a SFSB seam c
ector7280 Jul 9, 2007 3:01 PM (in response to ector7280)I couldn't get the Faces Context to work because, it keep looking for a non-null attribute.
I did get the Contexts method to work though.
Thanks.