getting JSF bean instance associated with the bean name using JSF 1.2
Joined: Oct 07, 2009
i have a requirement, need to get a JSF bean instance associated with the bean name which is configure in the faces-config.xml using JSF1.2.
could you please help me with this problem?
please provide me some sample code.
Within JSF, the easiest way to get a bean instance into another bean is to inject it by setting a managed property in the faces-config file. On a JSF view, just refer to it by name in an EL expression.
In non-JSF code, you can just use the standard J2EE APIs such as request.getSession.getAttribute() for session beans and request.getAttribute for request beans.
I'm not even sure where createValueBinding comes in.
Customer surveys are for companies who didn't pay proper attention to begin with.