You need to sign in to do that
Don't have an account?

How to conditionally show a component?
I need to show a outputPanel depending on some clause.
IF(errorExists)
{
<apex:pageBlockSection>
<apex:outputText style="font-style:italic;font-weight:bold;color:red" value="{!error.errorDescription}"/>
</apex:pageBlockSection>
}
else
{
//show something else
}
How do I do this in VisualForce Page? Also the errorExists has to be read from the custom controller. Something like IF({!error.errorExists})???
Please help?
IF(errorExists)
{
<apex:pageBlockSection>
<apex:outputText style="font-style:italic;font-weight:bold;color:red" value="{!error.errorDescription}"/>
</apex:pageBlockSection>
}
else
{
//show something else
}
How do I do this in VisualForce Page? Also the errorExists has to be read from the custom controller. Something like IF({!error.errorExists})???
Please help?
Usually I wrap stuff in an output panel tag when I'm switching off a rendered true vs false.