Hi
all:
I'm trying to
access a managed bean from a servlet filter. The filter is defined to wrap
the '*.jsf' url pattern. My code to do the lookup functions something like
this:
getApplication().createValueBinding("#{myBean}").getValue(FacesContext.getCurrentInstance())
And my bean
mapping looks like this:
<managed-bean>
<managed-bean-name>myBean</managed-bean-name>
<managed-bean-class>com.vegas.MyBean</managed-bean-class>
<managed-bean-scope>application</managed-bean-scope>
</managed-bean>
Unfortunately the
FacesContext is null in all cases. Is there a better way to do this?
Is lookup of a managed bean from a filter even possible?
Thanks in
advance.
Carl

