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

Is there aw ay to refer to a constant in a visual force "rendered" expression
Hi all,
I am trying to do something like this:
<apex:outputText rendered="{!state=SHOW}">This is the dashboard</apex:outputText>
where SHOW is a constant in my controller.(Rather than hard code numbers in my visual force pages).
Is there a way to do this.
Vijay
try something like
public string getRendereredConstant(){ return 'Show'; }
and in the VF page
<apex:smileysurprised:utputText rendered="{!renderedConstant}">This is the dashboard</apex:smileysurprised:utputText>
Thanks Paul,
I realized that could be done. Of course, I was trying to avoid creating one such method in my controller for each and every constant in my state machine.
Thanks for the help, anyway!
Vijay