This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes getters and setters in JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "getters and setters in JSF" Watch "getters and setters in JSF" New topic
Author

getters and setters in JSF

Varun Khanna
Ranch Hand

Joined: May 30, 2002
Posts: 1400
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.


- Varun
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getters and setters in JSF
 
Similar Threads
getter method called on APPLY_REQUEST_VALUES
Question in Facelets
Multiple selectOneMenu with same value
HtmlInputText NullPointerException
default button / sequence of setter calls