You need to sign in to do that
Don't have an account?
Mitesh Sura
Found a bug in apex dynamic component
Looks like a bug to me unless someone tells me I am doing something wrong.
Cannot add straight HTML to outputText if the value is dynamic. On other hand if it same value, but provided as static value it works fine. Please see below:
Component.Apex.outputText txt = new Component.Apex.outputText(value=dynamicValue, escape=false); // DOES NOT WORK Component.Apex.OutputText txt = new Component.Apex.OutputText(value='<b>A Heading</b>', escape=false); //WORKS FINE //dynamicValue is same as "<b>A Heading</b>", but it won't work.
Hello,
Try refering the dynamic value like this
Component.Apex.OutputText htmlTxt = new Component.Apex.OutputText();
htmlTxt.value =dynamicValue;
htmlTxt.escape = false;
I wish that worked. I had tried that as well.
Hello,
Can you please share the code, how are you getting the dynamicvalue?
Please see below, the code is part of method that is called form VF page.
template.T_C__c is a rich text field.