Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

PropertyNotFoundException

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

 
Varun Khanna
Ranch Hand
Posts: 1400
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic