• #30559
    Forcetalks

    In What Order Do Methods Fire Within A Salesforce Controller?

    In What Order Do Methods Fire Within A Salesforce Controller?

     

    #30583
    Forcetalks

    Hello Chanchal,

    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.

    #35285
    Forcetalks

    Hi,

    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.

    #36417
    Salesforce | Parul Parul #2
    Forcetalks

    The constructor is fired after that the order is in the order that the methods are called by the page. Setters methods are called before action methods, but there is no guarantee of the precise order.

     

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)

Please to reply to this topic.

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending

About Us

Forcetalks is a Salesforce collaboration platform for coders & developers, geeks & nerds, consultants & business heads, admins & architects, managers & marketers and of course the business owners. A community where you can learn from, where you can contribute to. For you. For Salesforce. Read More...

Copyright 2019 Forcetalks. All Right Reserved.

Log in with your credentials

or    

Forgot your details?