I have a requirement to show page message for a particular selected template. The template selection done here. But render is always returning true in this case. Can someone help me here?
<apex:selectList id="chooseTempalte" label="Choose Template" title="Select your Template" value="{!selectedTemplateId}" size="1" onChange="rerenderEmailFields(this.value)">
<apex:selectOptions value="{!TemplateOptions}"/>
</apex:selectList>
<apex:outputLabel style="color:red;" rendered="{!IF(selectedTemplateId='Update Status - Send to ABSM', false, true)}" >
Please note this selected option will set the status value to Under Review <br/><br/>
</apex:outputLabel>
Please find the apex controller snippet here.
public List<SelectOption> getTemplateOptions() {
options = new List<SelectOption>();
for (EmailTemplate t : etMap.values()) {
options.add(new SelectOption(t.Id,t.Name));
if((selectedTemplateId == '' || selectedTemplateId == null) && t.Name == 'Update Status - Send to ABSM')
{
selectedTemplateId = t.Id;
ApplyTemplate();
}
}
return options;
}
{!IF(selectedTemplateId='Update Status - Send to ABSM', false, true)}
is always true?