File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PropertyNotFoundException

 
Francisco I
Ranch Hand
Posts: 44
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1400
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you show full trace of your exception message?
 
Francisco I
Ranch Hand
Posts: 44
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
Ok, Here it is... it is looooong...
THanks for the help.

 
Varun Khanna
Ranch Hand
Posts: 1400
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic