You need to sign in to do that
Don't have an account?
Surendra nune
Side affects of initialising constructor of a controller.
Hi,
I have two visualforce pages PageA,PageB and their respective controllers PageActrl, PageBCtrl .
What are the side affects of initialising PageActrl constructor in pageBCtrl?
I have two visualforce pages PageA,PageB and their respective controllers PageActrl, PageBCtrl .
What are the side affects of initialising PageActrl constructor in pageBCtrl?
While loading the page constuctor of the class related to the page will instantiate and create a object in heap . If you will instantiate another class constuctor in the current class it will also create an object in heap .
Problem may occur if you have query in both constructor then it may throw the view state exception if you have form tag in VF page .