+ Start a Discussion

rendered attribute in <ApeX:page>

i am reallu confused with the rendered attribute . how should we compute the formula . I want to create a formula related to opportunity object
Best Answer chosen by Admin (Salesforce Developers) 

The Rendered attribute specifies if the particular object is rendered.  This attribute can be used with almost all visualforce components.


The values passed should be in the form of a boolean.  Here is a quick example:


<apex:page rendered="{!ShouldIRender}"> <h1>Congratulations</h1> <p>This is your new page</p> </apex:page>




public boolean getShouldIRender() { if (Some Condition) { return true; } else { return false; } }