This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSF and the fly likes Cant set managed bean property Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Cant set managed bean property" Watch "Cant set managed bean property" New topic
Author

Cant set managed bean property

Henrique Ordine
Ranch Hand

Joined: Sep 03, 2004
Posts: 127
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?


J2EE Architect/Developer
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cant set managed bean property
 
Similar Threads
ERROR - ValueBindingImpl.getValue | Cannot get value for expression '#{modelPage
managed bean injection problem
How to Access Another Class' Property Value that is Defined in the faces-config.xml?
managed property does not work
Spring/JSF Managed PhaseListener