• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

access with a bean, the information of a managed bean

 
Kevin Schenck
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found here the topic: access another bean information.

My problem is almost the same. This guy is trying to get information from a managed bean in another manager bean.

I want to start in a spring bean (I guess), it is <bean name=... class=... scope=... /> en get from here information from a managed bean.

Is this possible?

Yes? How?

Thanks
 
Tim Holloway
Saloon Keeper
Posts: 18300
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can bind JSF managed beans and Spring beans by adding the variable-resolved to your faces-config.xml file:


This is a one-way connection, however. It lets Spring beans be injected into JSF beans, but not the other way around. In practice, that's usually OK, since Spring beans are usually things like data services and other infrastructure-supporting objects whose scope is as wide or wider than the target JSF beans.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic