You need to sign in to do that
Don't have an account?

Need help!! For Rich Text Field in a Visualforce Template
Hi all,
i'm trying to use Rich Text Field on a Salesforce site's page with a custom controller.
I updated both the controller and Visualforce page version at 18.0 :
- the controller, after this save, works correctly
- but when i try to saving the version of this visualforce page, the error will appear is:
"Error: Invalid field Description__c for SObject Ospitalita__c"
(Description__c is the Rich Text Field)
For your info, if i insert this rich text field in a empty visualforce page, it works correctly.
But i give the error in my site pages , which have the template tags (apex:composition and apex:insert) .
Are "this tags" the problem?
How can i fix it?
I need apex:composition and apex:insert and i don't want to delete them or substitute with component.
Thanks in advance!!
With summer '10 release,
the Rich Text Field is no longer to version beta and now it is compatible with Visualforce Template tags!
Thanks paul to your suggestion with the Visualforce page version 19.0.
All Answers
Hi imuino
yes, i enabled both the site and rich text field to that object. But the problem is before access settings.
The visualforce page doesn't save if i insert RTF ;
so if I display the page not trough the site but by appending apex/myPage in Salesforce istance, i see the myPage without that field (because it is not saved into page)
Have you tried to use RTF inside an <apex:define> tag?
Try this, put the Field into an inputText tag instead of an insert.
If that doesn't work just try to save the page code on the web editor on your org, not from eclipse
Eclipse doesnt recognize this type of field as far as i know, thats why it "doesnt exist" to it.
I tryed into web editor (i don't use eclipse for visualforce) and i see the famous error..
My problem is on VIEW that field (the value is a specific record by put id parameter on this page). I don't use it as input field into page.
See below: this tag works correctly on empty page (without template and apex:define)
<outputText value="Description_rich__c" />
But the same tag gives the error when i try to view this field in to <apex:define>....
<outputText value="Description_rich__c" />
shouldnt be the apex word on the tag name?
<apex:outputText value="Description_rich__c" />
I'm sorry,
the complete tag is:
<apex:outputText value="Description_rich__c"/>
When the Rich Text Field beta will update to final release ?
(so compatible with apex:composition and apex:define tag? )
So, you have a richtext field "Description__c" on your object Ospitalita__c.
Currently, for me, this won't work:
{!Ospitalita.Description__c}
(in my org, I just see the characters "Ospitalita.Description__c" appear in the visualforce page output.)
I think it's because the richtext field contains HTML, and by default visualforce pages will escape HTML. But if you turn that off explicitly, it seems to render well for me.
This may work:
<apex:outputText value="{!Ospitalita.Description__c}" escape="false" />
Hi Kirk,
thanks for reply.
My problem is not on the warnings on escape HTML on Rich Text, but which the Visualforce page is not saved with the RTF field
, because it returns this error:
"Error: Invalid field Description__c for SObject Ospitalita__c"
In particular this bug only happens when if there are the "template" tags apex: composition and apex: define in Visualforce page.
If I use RTF field in an empty Visualforce page, it works correctly !
I hope I have explained my problem well
I found myself in the same problem. Have you found any way around this or should we just wait until the Rich Text Fields are out of the Beta phase?!
Indeed this is a big issue.
Any news from Salesforce?
For instance I can't find anywhere the implications of Rich text field being in Beta. Can we use them in production?
I had the same problem and I was able to fix it! It is a simple versioning issue!
Check the version of the visualforce page or class or trigger, etc . that you are trying to save. Most likely it is an older version that cannot access rich text areas. Simply update the version to the latest one (I am on 19 now), and save it. Now you should be able to reference rich text areas without problem!
Hope that helped!
With summer '10 release,
the Rich Text Field is no longer to version beta and now it is compatible with Visualforce Template tags!
Thanks paul to your suggestion with the Visualforce page version 19.0.
hi All,
I have rich text field and i want to display the that field data in visaul force page.
i used <apex:outputText style="font-size:11px;" value="{!descr.Description_Language__c}:" escape="false"/> to display the RTF data but still it is displaying the RTF data on UI like '<span><p> this is desc. </p> </Span>' instead of 'this is desc.'
can any one please tell me the resolution , is it possible to do this in visual force/apex or if there are any other workaround which will remove these html tag either by using the java script tag or any other way.
I tried to change the Version but it did not work. Still it is showing the HTML tags in the output. I was on 20.0 and changed to 19.0. Any idea why is this happening?