• Post Reply Bookmark Topic Watch Topic
  • New Topic

getting JSF bean instance associated with the bean name using JSF 1.2

 
karthikeyan sai
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
Tim Holloway
Bartender
Posts: 18408
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to be more clear.

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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!