I am just wondering about the life cycle of page controllers? How often are than instantiated and is there any configurations which can change this?

Is there a method guaranteed to be invoked every time a page which uses the controller is displayed?


2 Answers 2


The docs have a detailed section explaining the order of execution for Visualforce pages:



Once a new get request is made by the user, the view state and controller objects are deleted.

If the user interaction requires a page update, such as when the user clicks a Save button that triggers a save action, a postback request is made. For more information on postback requests, see Order of Execution for Visualforce Page Postback Requests.



You must log in to answer this question.

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