How to override field labels in visualforce page

How to override field labels in visualforce page? <apex:page standardController=”Account” recordSetVar=”accs”> <apex:form > <apex:pageBlock title=”Std List Controller Demo”> <apex:pageBlockTable value=”{!accs}” var=”a”> <!– how to override the sObject label using facet–> <apex:column value=”{!a.Name}”> <apex:facet name=”header”>Company Name</apex:facet> <!– header footer caption –> </apex:column> <apex:column headerValue=”Industry”> <apex:inputField value=”{!a.Industry}”/> </apex:column> <apex:column value=”{!a.Phone}”/> <!– how to override the sObject label –> <apex:column headerValue=”Company Type” value=”{!a.Type}”/> </apex:pageBlockTable> <apex:pageBlockButtons > <apex:commandButton value=”Update” action=”{!save}”/> <apex:commandButton value=”Next” action=”{!Next}”/> </apex:pageBlockButtons> </apex:pageBlock> </apex:form> </apex:page>

Read More

Create tab interface in a visualforce page

<apex:page standardController=”Account”> <apex:tabPanel selectedTab=”Tab1″> <apex:tab label=”Account” name=”A”> <apex:detail subject=”{!account}” relatedList=”false”/> </apex:tab> <apex:tab label=”Contact” name=”Tab2″> <apex:relatedList subject=”{!account}” List=”Contacts”/> </apex:tab> <apex:tab label=”Opportunity” name=”Tab3″> <apex:relatedList subject=”{!account}” List=”Opportunities”/> </apex:tab> </apex:tabPanel> </apex:page>

Read More