This content has been marked as final.
Show 1 reply
-
1. Re: Session access ...
ssilvert Dec 3, 2007 10:29 AM (in response to thesid)You shouldn't use the HttpSession for this because the session is cleared (but not destroyed) each time you create a new JSFClientSession.
I suggest using the application scope instead.ServletContext context = (ServletContext)server.getFacesContext().getExternalContext().getContext(); context.setAttribute("foobar", "test");
Also, this new wiki I just wrote might shed some light on JSFUnit's use of the HttpSession:
http://wiki.jboss.org/wiki/JSFUnitSessionAndThreads
Stan