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

Apex Controller Event Life Cycle

Is there an event in a Controller that is fired after the setters and getters have been called.


I want to setup some data once the setters and getters have finished so I cannot use the constructor


is there like a   page_load, awake,  or sleep  event that other major Web Application frameworks support?




Nothing that I'm aware of.


I'd normally use the onload handler for the page to invoke an action method once everything has been rendered (which means that all the getters/setters will have finished).


maybe you can use the action atrribute of the page to call an action method (kind of similar to what Bob suggested).


Thanks guys, I thought of doing that samething which would normally work. But in this case it is for a Component so there is not action method


THanks anyway for  the replies


Vote for my IDEA to fix this here: