This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes JSF and the fly likes access with a bean, the information of a managed bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "access with a bean, the information of a managed bean" Watch "access with a bean, the information of a managed bean" New topic
Author

access with a bean, the information of a managed bean

Kevin Schenck
Greenhorn

Joined: Apr 03, 2009
Posts: 2
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

Joined: Jun 25, 2001
Posts: 17165
    
  27

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.


An IDE is no substitute for an Intelligent Developer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: access with a bean, the information of a managed bean
 
It's not a secret anymore!