Re: [OT] scope trick

2006-06-01 Thread Matthias Wessendorf
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

Re: [OT] scope trick

2006-06-01 Thread Dennis Byrne
>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 scop

Re: [OT] scope trick

2006-06-01 Thread Craig McClanahan
On 6/1/06, Dennis Byrne <[EMAIL PROTECTED]> wrote: >As long as you don't also have a "sharedData" bean in request scope, this>will pick up the session scoped bean for you (and also create it if>necessary, if it is a managed bean).Hi Craig, I can only see how the first part is correct.  If sharedDat

Re: [OT] scope trick

2006-06-01 Thread Dennis Byrne
>As long as you don't also have a "sharedData" bean in request scope, this >will pick up the session scoped bean for you (and also create it if >necessary, if it is a managed bean). Hi Craig, I can only see how the first part is correct. If sharedData is a data structure in session scope (not i

Re: [OT] scope trick

2006-06-01 Thread Craig McClanahan
On 6/1/06, Dennis Byrne <[EMAIL PROTECTED]> wrote: The spec says higher scoped managed beans cannot be injected into lower scoped managed beans.  This doesn't mean we can't inject session scoped data into request scope managed beans ... geographyProducer gov.blm.ak.GeographyConsumerThread request 

Re: [OT] scope trick

2006-06-01 Thread Ondrej Svetlik
Dennis Byrne wrote: The spec says higher scoped managed beans cannot be injected into lower scoped managed beans. This doesn't mean we can't inject session scoped data into request scope managed beans ... geographyProducer gov.blm.ak.GeographyConsumerThread request sharedData

[OT] scope trick

2006-06-01 Thread Dennis Byrne
The spec says higher scoped managed beans cannot be injected into lower scoped managed beans. This doesn't mean we can't inject session scoped data into request scope managed beans ... geographyProducer gov.blm.ak.GeographyConsumerThread request sharedData #{facesContext.exter