This content has been marked as final.
Show 7 replies
-
1. Re: how to get a session attribute with JBoss Seam?
binnyg Feb 20, 2009 6:57 PM (in response to darcyney)@In FacesContext facesContext;
HttpServletRequest request = (HttpServletRequest) facesContext.getExternalContext().getRequest(); Object o = (Object) request.getSession().getAttribute("object");
-
2. Re: how to get a session attribute with JBoss Seam?
darcyney Feb 20, 2009 7:23 PM (in response to darcyney)The my
Object
will count tag:
@name(myObject
)because it returns null when I use in my backBean:
@In
Object myObject;Thanks a lot
Darcy
-
3. Re: how to get a session attribute with JBoss Seam?
joblini Feb 20, 2009 7:24 PM (in response to darcyney)Object o = (Object)Contexts.getSessionContext().get("object");
-
4. Re: how to get a session attribute with JBoss Seam?
joblini Feb 20, 2009 7:28 PM (in response to darcyney)@In(name="myObject", create="true") Object myObject;
-
5. Re: how to get a session attribute with JBoss Seam?
darcyney Feb 20, 2009 7:33 PM (in response to darcyney)I could not use injection a time that my object has tag @name(
myObject
)????Thanks a lot.
Darcy
-
6. Re: how to get a session attribute with JBoss Seam?
darcyney Feb 20, 2009 7:38 PM (in response to darcyney)very good! I have the impression to have attemped that is I received the object with value null, but I go to remake the test.
-
7. Re: how to get a session attribute with JBoss Seam?
joblini Feb 20, 2009 7:39 PM (in response to darcyney)@Name.does not create the object. Use @AutoCreate.