Activity Forums Salesforce® Discussions What do {!expressions} refer to when used in Visualforce components?

  • madhulika shah

    Member
    July 27, 2018 at 7:30 am

    Hi Prachi,

    Expressions allow you to make calculations and access property values and other data within component markup. Use expressions for dynamic output or passing values into components by assigning them to attributes.
    An expression is any set of literal values, variables, sub-expressions, or operators that can be resolved to a single value. Method calls are not allowed in expressions.

  • Anjali

    Member
    September 13, 2018 at 1:08 pm

    Hi Prachi,

    Expressions refer to either data or actions that are made available to the page from the controller.

  • Parul

    Member
    September 13, 2018 at 1:34 pm

    A Visualforce expression is any set of literal values, variables, sub-expressions, or operators that can be resolved to a single value. Method calls aren't allowed inexpressions. Anything inside the {! } delimiters is evaluated and dynamically replaced when the page is rendered or when the value is used.

     

    Thanks

  • Anurag

    Member
    September 13, 2018 at 1:39 pm

    Hi Prachi,

    Anything inside the {! } delimiters is evaluated and dynamically replaced when the page is rendered or when the value is used.

  • shariq

    Member
    September 14, 2018 at 1:17 am

    Hi,

    We use expressions for dynamic output or passing values into components by assigning them to attributes. A Visualforce expression is same as in other languages (Java, C or C++ etc). It is aset of literal values, variables, sub-expressions, or operators that can be resolved to a single value.

    For Example : - {!x+y} will give you a sum of two getter setter variable(x and y).

    Hope this helps.

Log In to reply.

Popular Salesforce Blogs