function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sai kumar 49sai kumar 49 

what is the order of execution in visualforce page?

Mohit Bansal6Mohit Bansal6
Hi Sai

Kindly refer this below link:
https://www.salesforce.com/docs/developer/pages/Content/pages_controller_lifecycle.htm

Regards
Mohit Bansal

Please mark this as solution by selecting it as best answer if this solves your problem, So that if anyone has this issue this post can help.
Amit Chaudhary 8Amit Chaudhary 8
1) Constructor methods on the associated controller / extension classes are called, instantiating the controller objects.
2) If the page contains any custom components, they are created and the constructor methods on any associated custom controllers or controller extensions are executed. If attributes are set on the custom component using expressions, the expressions are evaluated after the constructors are evaluated.
3) The page then executes any assignTo attributes on any custom components on the page. After the assignTo methods are executed, expressions are evaluated, the action attribute on the <apex:page> component is evaluated, and all other method calls, such as getting or setting a property value, are made.
4) If the page contains an <apex:form> component, all of the information necessary to maintain the state of the database between page requests is saved as an encrypted view state. The view state is updated whenever the page is updated.
5) The resulting HTML is sent to the browser. If there are any client-side technologies on the page, such as JavaScript, the browser executes them

In Short
Constructor of controller /extension - >  constructor of custom components  -> AssignTo any Custom Components -> Action method->Getter or Setter -> Form method -> HTML

See more detail in below blog:-
http://amitsalesforce.blogspot.in/2015/04/visualforce-page-life-cycle-in.html

Please let us know if this will help you