Yes, you can obtain the bean from the context using the
VariableResolver, like this:
FacesContext facesContext = FacesContext.getCurrentInstance();
YourBean yourBean = (YourBean) facesContext.getApplication()
.getVariableResolver().resolveVariable(
facesContext,
"yourBeanName");
BTW, it's OK to store the preferences in a session bean...
Regards,
Bruno
2005/9/12, ::SammyRulez:: <[EMAIL PROTECTED]>:
> Hi all
>
> I have designed my app to have a session scoped bean storing transient
> preferences.
>
> In others beans I need to read that preferences... I'm doing it right?
> Are there any ways to obtain from facesContext the instance fo the
> session scoped bean?
>
> thanks!
>
>
> --
> ::SammyRulez::
> http://sammyprojectz.blogspot.com
>