aspose file tools*
The moose likes JSF and the fly likes MyFaces not creating managed bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "MyFaces not creating managed bean" Watch "MyFaces not creating managed bean" New topic
Author

MyFaces not creating managed bean

David Karr
Greenhorn

Joined: Jan 06, 2008
Posts: 12
I had a couple simple "toy" apps using the JSF 1.1 implementation from BEA (derived from Sun), also using RichFaces 3.1.3. I decided to try using the MyFaces implementation (just the api and impl jars) in place of the BEA implementation. The JSP page is basically working, but for some reason it's not creating my managed bean and putting it into its defined scope. I also defined a debugging lifecycle listener, and that appears to be working fine, but the managed bean seems to be ignored. I know this because I set a breakpoint in the bean constructor of the managed bean class, and it never hits it. I tried to reference a property from it in the JSP and that causes it to fail, saying "PropertyNotFoundException: Base is null". This happens when the variable referenced in the expression doesn't exist in the scope.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17260
    
    6

I know this may sound stupid, but is the bean defined in the JSF beans configuration xmlm file?

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MyFaces not creating managed bean