function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
lakshmi.sf9lakshmi.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
Ramu_SFDCRamu_SFDC
See if this post helps

https://developer.salesforce.com/forums/ForumsMain?id=906F000000096GfIAI