<apex: outputText > Tag:
Displays text on a Visual force page. You can customize the appearance of <apex:outputText> using CSS styles, in which case the generated text is wrapped in an HTML <span> tag. You can also escape the rendered text if it contains sensitive HTML and XML characters. This component does take localization into account.
· Public string optout{get; private set;}
You can display this property on page using only <apex:outputtext> tag not with inputfield/inputtext/outputfield.
*Note:
Encrypted custom fields that are embedded in the <apex:outputText> component display in clear text. The<apex:outputText> component doesn't respect the View Encrypted Data permission for users. To prevent showing sensitive information to unauthorized users, use the <apex:outputField> tag instead.
VF Page code:
<apex:page >
<apex:outputText value="The unformatted time right now is: {!NOW()}" />
<br/><br/>
<apex:outputText value="The formatted time right now is:
{0,date,yyyy.MM.dd G 'at' HH:mm:ss z}">
<apex:param value="{!NOW()}" />
</apex:outputText>
</apex:page>
No comments:
Post a Comment