You need to sign in to do that
Don't have an account?
lakshmi.sf9
Line breaks are not allowing in apex:outputText
Hi,
I am writing in component as -- this is in outputmode.
<apex:outputText label="Comment" value="{!ECSQ.Comment}" rendered="{!ECSQ.Comment!=''}" />
In input mode this is <apex:inputTextArea value="{!ECSQ.Comment}" cols="80" rows="10">
I am entering in input data as with line breaks
"testtesttest
test11111
test2222"
output is "testtesttest test11111 test2222"
actually line breaks will come in apex:outputField.
But in my case if I give outputFiled I will get error as
"Could not resolve the entity from <apex:outputField> value binding '{!ECSQ.Comment}'. <apex:outputField> can only be used with SObjects, or objects that are Visualforce field component resolvable."
Here ECSQ is component attribute.
I need to use string values in outputTex field and line breaks is also required.
Please help me on this
I am writing in component as -- this is in outputmode.
<apex:outputText label="Comment" value="{!ECSQ.Comment}" rendered="{!ECSQ.Comment!=''}" />
In input mode this is <apex:inputTextArea value="{!ECSQ.Comment}" cols="80" rows="10">
I am entering in input data as with line breaks
"testtesttest
test11111
test2222"
output is "testtesttest test11111 test2222"
actually line breaks will come in apex:outputField.
But in my case if I give outputFiled I will get error as
"Could not resolve the entity from <apex:outputField> value binding '{!ECSQ.Comment}'. <apex:outputField> can only be used with SObjects, or objects that are Visualforce field component resolvable."
Here ECSQ is component attribute.
I need to use string values in outputTex field and line breaks is also required.
Please help me on this
https://developer.salesforce.com/forums/ForumsMain?id=906F000000096GfIAI