This content has been marked as final. Show 2 replies
I don't think this is really a Seam issue but rather JSF
FacesContext context = FacesContext.getCurrentInstance(); HttpSession session = (HttpSession) context.getExternalContext().getSession(false);
Of course you can use a Seam API to get the FacesContext
You can even inject (non-Seam) session values into your Seam components:
@In("my_session_object_key") MySessionObjectType mySessionObject;
The cool thing about this is if you later decide to move your object to a different scope (eg conversation), you don't have to change this code at all!