You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by mfaine <mf...@knology.net> on 2005/01/06 20:22:08 UTC

creation of new beans

When a managed bean is created that has as properties other beans, do these
bean properties get instantiated as well?  For example, I have a bean
UserBean with a property Center that is itself a bean.  There are getCenter
and setCenter methods. When a new UserBean is instantiated will Center also
be instantiated or will it remain null?

When my JSP renders there is a selectOneMenu that is used to set the value
of userBean.center.centerId but I keep recieving an error message that leads
me to believe that center is null.

I tried to instantiate center in a constructor and in the getCenter method
but neither method worked.


Thanks,
-Mark