- July 27, 2018 at 12:52 pm #30559chanchal kumar #13
In What Order Do Methods Fire Within A Salesforce Controller?
In What Order Do Methods Fire Within A Salesforce Controller?July 30, 2018 at 4:13 am #30583Avnish Yadav #3
If you are asking the order of execution of setter and getter values then Setter is fired first, a then getter fires.
A setter is called before the action methods, the action method executes will be accessing the variable that was set.
Thanks.September 19, 2018 at 1:10 pm #35285
The constructor is called when a page using the controller is first viewed (unless you’ve just come from another page that uses the same controller).
Getters are called as the page is rendered to fill in information, then actions are typically fired after in response to a button press or similar. <apex:actionPoller> renderes every n seconds where you define the time, and if it re-renders part of the page (or the whole page) the getters would be called after the action is performed.
Thanks.September 22, 2018 at 1:33 pm #36417
Please Register to reply to this topic. /