wood burning stoves 2.0*
The moose likes JSF and the fly likes PropertyNotFoundException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "PropertyNotFoundException" Watch "PropertyNotFoundException" New topic
Author

PropertyNotFoundException

Francisco I
Ranch Hand

Joined: Mar 27, 2001
Posts: 44
Hi.
I have a managed bean and one of its properties is another managed bean. Whenever I try to instantiate the first bean I get:
javax.faces.el.PropertyNotFoundException: Can't set managed bean property: 'userb'

Here's part of my code. The main bean is Login and the property is UserSecurity.

faces-config.xml


Now, pagecode.pages.Login.java
has:


and the getters and setters are simple

Do I have to do anything special to have a custom managed bean be the value of a property of another managed bean?.
Anything in particular that these classes Login.java and UserSecurityBean have to have?
What am I missing?.

Thanks a lot.
Varun Khanna
Ranch Hand

Joined: May 30, 2002
Posts: 1400
Can you show full trace of your exception message?


- Varun
Francisco I
Ranch Hand

Joined: Mar 27, 2001
Posts: 44
Hi.
Ok, Here it is... it is looooong...
THanks for the help.

Varun Khanna
Ranch Hand

Joined: May 30, 2002
Posts: 1400
Here is :
faces-config.xml


Login.java


UserSecurityBean .java


Output ::
[2/16/05 16:19:44:454 CST] 7f76684 SystemOut O USB Constructer
[2/16/05 16:19:44:454 CST] 7f76684 SystemOut O Inside setUsers


which means code is working perfectly.
When are you getting this error?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: PropertyNotFoundException