aspose file tools
The moose likes JSF and the fly likes gettting managed bean names Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "gettting managed bean names" Watch "gettting managed bean names" New topic
Author

gettting managed bean names

Adrian Enns
Ranch Hand

Joined: Aug 11, 2004
Posts: 48
Is there a way to programmatically access the names of all of the managed beans that are declared in faces-config.xml?
Varun Khanna
Ranch Hand

Joined: May 30, 2002
Posts: 1400
Unfortunately as of now there isn't any api/method provided by JSF.

But you can do it through your program by parsing xml or reading a properties file containing the names of beans.


- Varun
seb petterson
Ranch Hand

Joined: Mar 04, 2005
Posts: 118

Will return the names of the objects stored in the session. This will include managedBeans, but I guess they have to have been instantiated before theyre in the enumeration.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: gettting managed bean names
 
Similar Threads
Trig functions
Access session Bean from another backing Bean
composite pk
what's wrong
Discussion of Naming Policy