Explain about Dynamic VisualForce Binding?
Dynamic Visualforce bindings allow you to create generic Visualforce web pages that help to visualize records without having to know which fields to display. In other words, rather than being defined at compile-time, the variables on the webpage are defined at run time. This enables a developer to create a web page that renders differently depending on the rights or preferences of different audiences. Dynamic bindings are useful for managed package Visualforce pages because they enable the analysis of information particular to each subscriber with very minimal work.
For both standard and custom objects, dynamic Visualforce binding is supported. The following is a general description of dynamic bindings :
reference[expression]
Where the syntax explains as follows :
* The value of the reference is either an sObject
, global variable
, or an Apex class
.
* The name of a field or a related object is returned by the expression. If an associated object is provided, it can be used to pick fields or other related objects in a recursive manner.