• Post Reply Bookmark Topic Watch Topic
  • New Topic

Cant set managed bean property  RSS feed

 
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 is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!