This content has been marked as final.
Show 1 reply
-
1. Re: How to outject without @Out annotation
sjmenden Oct 23, 2007 10:06 AM (in response to paradigmza)You can look up the component and automatically create it if it doesn't exist like:
MyBean myBean = Component.getInstance("myBean", true);
Then set it to whichever context you want via:
Contexts.getSessionContext().set("myBean", myBean);
The above is not a perfect example, because if the myBean is ScopeType.SESSION, there is no reason to set it again in the Session context.
-Samuel