On 2/14/06, Dave Brondsema <[EMAIL PROTECTED]> wrote:
Use their 3rd solution (<managed-property>).

That would be my general recommendation at well.

For any of the solutions they discuss, beans can be in any scope.  They
just used 'session' as an example.

But, this needs to be clarified a bit.  You cannot inject a reference from a "shorter" lived bean into a "longer" lived bean (indeed, the JSF implementation catches that; MyFaces certainly caught me on it when I tried by accident :-).

For example, it's OK for a request-scoped bean to reference a session-scoped bean, but not the other way around.  It's also OK to reference a session-scoped bean from another session scoped bean.

Craig

Reply via email to