Download Visualforce Developer`s Guide
Transcript
Standard Component Reference
apex:outputField
Visualforce page. To override the display of custom help, use the <apex:outputField> in the body of an
<apex:pageBlockSectionItem>.
The Rich Text Area data type can only be used with this component on pages running Salesforce.com API versions greater than 18.0.
This component supports HTML pass-through attributes using the "html-" prefix. Pass-through attributes are attached to the generated
container <span> tag.
Example
<!-- For this example to render properly, you must associate the Visualforce page
with a valid opportunity record in the URL.
For example, if 001D000000IRt53 is the opportunity ID, the resulting URL should be:
https://Salesforce_instance/apex/myPage?id=001D000000IRt53
See the Visualforce Developer's Guide Quick Start Tutorial for more information. -->
<apex:page standardController="Opportunity" tabStyle="Opportunity">
<apex:pageBlock>
<apex:pageBlockSection title="Opportunity Information">
<apex:outputField value="{!opportunity.name}"/>
<apex:outputField value="{!opportunity.amount}"/>
<apex:outputField value="{!opportunity.closeDate}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
Attributes
Attribute Name Attribute Type
Description
Required? API
Access
Version
dir
String
The direction in which the generated HTML component
should be read. Possible values include "RTL" (right to left) or
"LTR" (left to right).
10.0
global
id
String
An identifier that allows the output field component to be
referenced by other components in the page.
10.0
global
label
String
A string value to be used as component label.
23.0
lang
String
The base language for the generated HTML output, for
example, "en" or "en-US". For more information on this
attribute, see the W3C specifications.
10.0
global
rendered
Boolean
A Boolean value that specifies whether the component is
rendered on the page. If not specified, this value defaults to
true.
10.0
global
style
String
The style used to display the output field component, used
primarily for adding inline CSS styles. This attribute may not
work for all values. If your text requires a class name, use a
wrapping span tag.
10.0
global
467
Related documents
SkyVisualEditor User Manual
WebEOC 7.5 Administrator Manual
Base Software for Control Systems
Cobalt Nomad, Cobalt Client, & Cobalt Offline Quick Guide
Salesforce.com Winter `13 Release Notes
Development Guide
Slide Show
MultiMatch User Guide
User Manual - AAkonsult Pty Ltd
Salesforce Knowledge Implementation Guide
Limites do Salesforce
Ottimizzazione di Salesforce con il codice
Aprimorar o Salesforce com código
Impostazione e gestione degli strumenti di
Configurar e manter ferramentas de suporte ao