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 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 17249
    
    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
 
Similar Threads
managing Faces-config in jSF ...please explain.
commandLink param problem
Beginners Querylogue!
Confirm message on submit
How to access managed bean (JSF) from JSP