• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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?
 
You totally ruined the moon. You're gonna hafta pay for that you know. This tiny ad agrees:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic