+ Start a Discussion

VF Page Order of execution


I was just checking the order of execution of VF - http://www.salesforce.com/us/developer/docs/pages/Content/pages_controller_lifecycle_example.htm 

As per the above link the execution steps are as above (high level) :

controller constructor -> extension constructor -> component controller -> component extension controller if present.

But when I removed the extension from my page the execution is as follows:

component controller -> controller constructor -> extension constructor.

Not sure; but I thought that execution should not have changed. Anybody knows why it behaves this way?
Hi Kulkarni, 

How did you observe this behavior? Usually it will go to the Controller of the page first either Standard or Custom.