Activity › Forums › Salesforce® Discussions › What do {!expressions} refer to when used in Visualforce components?
-
What do {!expressions} refer to when used in Visualforce components?
Posted by Prachi on July 27, 2018 at 7:26 AMWhat do {!expressions} refer to when used in Visualforce components?
shariq replied 7 years, 8 months ago 6 Members · 5 Replies -
5 Replies
-
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. - [adinserter block='9']
-
Hi Prachi,
Expressions refer to either data or actions that are made available to the page from the controller.
-
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
-
Hi Prachi,
Anything inside the {! } delimiters is evaluated and dynamically replaced when the page is rendered or when the value is used.
-
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.