myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Byrne" <>
Subject Re: [OT] scope trick
Date Thu, 01 Jun 2006 22:02:15 GMT
>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.


Dennis Byrne

View raw message