Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Cant set managed bean property

Henrique Ordine
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSF says that my managed bean does not have a setter method for my id property.
But my managed bean class does implements:
Long getId();
void setId(Long);

the problem is, my managed bean class implements an interface which declares this method:
Object getId();

I thought that maybe because getId() in the interface returned Object, JSF might have been looking for a setter method which took an Object.

So I had the managed bean class not implement this interface anymore and it worked fine.

Anybody have any idea why that happens?
It's a beautiful day in this neighborhood - Fred Rogers. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!