• 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

JSF Error the class does not have property

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Saloon Keeper
Posts: 27807
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic