• #34133
     Anjali #8
    Forcetalks

    What are expressions used in pages to bind in controllers?

    What are expressions used in pages to bind in controllers?

    #34139
    Forcetalks

    Hello Anjali,

    Using methods we can bind.
    Getter: Will return value from controller to Visualforce page
    Setter: Will pass value from Visualforce page to the controller
    Action: Will redirect to another page.

    Hope this will help you.

    Thanks.

    #34146
    Salesforce | Parul Parul #2
    Forcetalks

    Hi

    With the help of methods, we can bind in controllers inside VisualForce pages.

    Values are returned by ‘Getter’ to VisualForce Page from the controller.
    Values are passed by ‘Setter’ from VisualForce page to controller.
    Redirect to another page with ‘action’.

     

    thanks.

    #34202
    Salesforce | shariq shariq #1
    Forcetalks

    Hi,

    There are two ways –

    1. Using Getter Setter Variables.
    2. Using ‘get’+method name or ‘set’+method name

    Example –

    public String str{get;set;}//Use {!str }in vf page

    public String getAllValues(){

    //return string

    return str2;

    }//Use {!AllValues}

    Hope this helps.

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 2018 Forcetalks. All Right Reserved.

Log in with your credentials

or    

Forgot your details?