• Post Reply Bookmark Topic Watch Topic
  • New Topic

gettting managed bean names  RSS feed

 
Adrian Enns
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1400
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
seb petterson
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!