简体   繁体   English

VisualForce页面长文本区域在编辑时丢失

[英]VisualForce page long text area missing on edit

I've got a "long text area" field that I've put on a page (in edit mode) like this: 我有一个“长文本区域”字段,该字段已放置在页面上(处于编辑模式),如下所示:

<apex:form>
    <apex:pageBlock title="monkeys" mode="edit">
        <apex:inputField value="{!opportunity.JobIdRequestComments__c}"/>
        <apex:inputField value="{!opportunity.LostDescription__c}"/>
    </apex:pageBlock>
</apex:form>

The second of the two fields shows up just fine, but the first does not appear. 两个字段中的第二个显示很好,但第一个没有出现。 Any idea what to look at? 知道要看什么吗? I don't see any difference between these fields in the field definitions, and the problem still exists when using the standardController with no extension. 我在字段定义中没有看到这些字段之间的任何区别,并且使用不带扩展名的standardController时,问题仍然存在。

As another test, I created a <apex:inputTextArea> on the same page, and when I put value="{!opportunity.JobIdRequestComments__c}", it doesn't get rendered, but when leaving that out, it does. 作为另一项测试,我在同一页面上创建了一个<apex:inputTextArea>,当我将value =“ {!opportunity.JobIdRequestComments__c}”放入时,它不会被渲染,但在忽略时会被渲染。

Converting to answer (easy reputation ;)) 转换为答案(信誉良好;)

Have you checked basic stuff like field level security for your profile? 您是否检查过个人资料等基本内容,例如字段级安全性? Visualforce limits the field visibility based on this even if you're System Administrator and they're often left blank if for example you've deployed just the field / object definition without profiles. 即使您是系统管理员,Visualforce也会基于此限制字段可见性,例如,如果您仅部署了没有配置文件的字段/对象定义,则它们通常会留空。

What happens if you put {!$ObjectType.Opportunity.fields.JobIdRequestComments__c.accessible} somewhere on the page? 如果将{!$ObjectType.Opportunity.fields.JobIdRequestComments__c.accessible}放在页面上的某处会发生什么?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM