Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Setters not being called?

 
John Bartlett
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was wondering whether anyone has ever had any problems where the setters in your beans not being called?

On one of my JSF pages for some unknown reason the setters are never being called, meaning the default value is left as the attributes value.

I have checked all the bean references and variable namings, and there is nothing wrong with any of them, seems odd that only the getters seem to be getting called.

Is there any bugs or common mistakes that can cause this kind of problem?

Any information would be much appreciated.

Thank you,

John Bartlett
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18003
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've had problems when I used the wrong scope. I'd send out stuff with Request scope, not realizing that when it came back, a whole new request scope object was being constructed and the original data had already gone out of scope and been discarded.
 
John Bartlett
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using session scope for all my beans, shouldnt this sort out any of these problems?

John
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic