0

i am just getting suspicious that prefixing the word "get" or "set" before method names in controller run automatically without invoking? Experts please clarify?

1 Answer 1

3

The methods are run by the Visualforce page rendering system automatically when the page is rendered if they are to be displayed on the page. If you look at the guide here on the order of execution for Visualforce page get requests it give you some more details about the order in which items are executed in order to help set the required values on the page.

1
  • 1
    Unless, of course, they are private.
    – sfdcfox
    Commented May 2, 2014 at 18:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .