wood burning stoves 2.0*
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 Java 8 in Action this week in the Java 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: 15665
    
  15

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: access with a bean, the information of a managed bean
 
Similar Threads
How can I make services available across Handlers?
Accessing jsf bean from another jsf bean
problem with managed bean
access another bean information
managed bean injection problem