On 7/2/09 5:42 AM, webtier_at_javadesktop.org wrote:
> Hi,
>
> I have jsf 2.0 managed bean called UserBean. It has the annotation SessionScoped.
> I want to refrerence this bean from another RequestScoped bean.
>
> I have added the UserBean property to the other bean like this.
>
> private UserBean userBean.
>
Is the field annotated with @ManagedProperty? Do you have accessors for
the property?
> When i want to access this bean in a @PostConstruct method, userBean is null.
> Why is that? UserBean is already created.
>
> Thanks
> [Message sent by forum member 'gabox01' (gabox01)]
>
> http://forums.java.net/jive/thread.jspa?messageID=353905
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>
>