• Post Reply Bookmark Topic Watch Topic
  • New Topic

getters and setters in JSF  RSS feed

Varun Khanna
Ranch Hand
Posts: 1400
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey there,

How can I indentify how many times the geter/setter methods of the backing bean would be called during a normal request life cycle. I would expects each of the gettet/setter to be called once , i.e.:
Getter - While rendering the response
Setter - While updating the model bean in the Update Model phase,

But I normally don't see any trend. For a same component, like datatable, in one page the getter/setter method (the method reference by the binding of "value" attribute of datatable)of the backing bean is called once whereas in the another page having datatable, the getter method is called twice.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!