File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Android Security Essentials Live Lessons this week in the Android 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: 15964
    
  19

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.
 
Consider Paul's rocket mass heater.
 
subject: access with a bean, the information of a managed bean
 
Similar Threads
problem with managed bean
managed bean injection problem
Accessing jsf bean from another jsf bean
How can I make services available across Handlers?
access another bean information