Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing 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?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic