File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » JSF
Bookmark "MyFaces not creating managed bean" Watch "MyFaces not creating managed bean" New topic

MyFaces not creating managed bean

David Karr

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

Joined: Feb 05, 2001
Posts: 17276

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


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: MyFaces not creating managed bean
It's not a secret anymore!