Visual-force Order of Execution
Visual-force Order of Execution are divided in two parts, namely Get and Post Back request. We will see both of the one by one. Get Request Firstly, the constructor's are called from the associated Controller or extension classes. Secondly, constructor's from the Custom component controller or extensions are called. In this step the expressions are evaluated on the custom component Attribute like assignTo are evaluated along with action methods and once the action methods are finished all other methods are evaluated on the Custom Components . In this step, view state is maintained. This is important to maintain necessary information between Database and Page. 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. Post Back Request In Post Back Request, firstly the View state is maintained to update the values on controller side (This doesn't...