Wow, this thread was hard to read (I read it twice) ;-)

So, to make a long story short

none  ->  none
application  -> none, application
session  -> non, application, session
request  -> none, app, session, req

on the left there is the scope of a bean
on the right there is the possible scope of *referenced* beans.


And, btw. for #{facesContext.externalContext.requestMap['foo']} you
can also use #{requestScope['foo']}. Same for session. sessionScope
goes to externalContext.getSessionMap();.

-Matthias

On 6/2/06, Dennis Byrne <[EMAIL PROTECTED]> wrote:
>It is the *opposite* direction that is prohibited ... you cannot inject a
>request scoped bean into a session scoped bean.

Whoops, I had it backwards the entire time ;)  And it looks like MyFaces knows 
it is illegal to inject #{facesContext.externalContext.requestMap['foo']} into 
a session scoped managed bean, even though the base token of the expression is 
not in request scope - just as if you tried to inject #{foo}, where foo is a 
request scoped managed bean.  I will have to come up with better tricks.

>Craig

Dennis Byrne





--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Reply via email to