• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF Error the class does not have property

 
Darius rib
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to add some mysql table columns to JSF table. And I'm getting error:

/index.xhtml: The class 'logon.User' does not have the property 'description'. Please help

User.java


LogonTest.java



index.xhtml

 
Tim Holloway
Bartender
Posts: 18408
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It may be my day to miss the obvious, but I cannot see anything in the actual sample code that would result in that error.

However, since the failing object is an EJB and EJBs are internally re-written by the persistence mechanism there's a possibility that by declaring your properties as public (fields) while simultaneously defining accessor methods for them that you're causing the rewrite mechanism to get confused. A persistence object is supposed to be only field-access (via direct public access to the instance variables) or property-access (via the get/set) method, but it shouldn't attempt to be both.

So, in short, you may be seeing a JPA/EJB error, not actually a JSF error.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!