I want to know if I can change Apex VisualForce tag attributes from the controller.
Can i do something like this?:
tag:
<apex:selectList id="Status" value="blah blah" multiselect="false" size="1">
in the controller:
if (inc.Status__c == 'Closed'){
Status.Rendered = false
}
Hope that makes sense!
I am current doing this, which i think is a bit long winded and want to avoid:
tag
<apex:selectList id="Status" value="blah blah" rendered="{!IncidentIsClosed}">
in the controller
if (inc.Status__c == 'Closed'){
IncidentIsClosed = false;
}
....
public Boolean getIncidentIsClosed() {
return IncidentIsClosed;
}
hope that helps!