all i have requirement where i need to show tittle along with command link in apex:pageblocksection....same as in when we create account record it shows in address information section one side tittle and another side command link ..
i am not able to call a function from my controller here is my controller
public PageReference copy_billingto_shipping() {
System.debug('In function');
if(this.acct.BillingStreet != null) {
System.debug('In if condition');
this.acct.ShippingStreet = this.acct.BillingStreet;
}
return null;
}
here is vf page
<apex:page standardcontroller="Account" extensions="Account_OverrideCtrl" tabstyle="Account">
<apex:form>
<apex:pageblock mode="edit" id="AccountPB" title="Account Edit">
<apex:pageblockbuttons>
<apex:commandbutton action="{!save}" value="Save"></apex:commandbutton>
<apex:commandbutton action="{!cancel}" value="Cancel"></apex:commandbutton>
</apex:pageblockbuttons>
<apex:pageblocksection id="AddressInformationPBS" title="Address Information">
<apex:facet name="header">
<apex:outputpanel >
<apex:outputText style="font-weight:bold;font-size:13px;float:left;" value="Address Information"/>
<apex:commandLink style="Float:right;" value="Copy Billing Address To Shipping Address" action="{!copy_billingto_shipping}" reRender="AddressInformationPBS"/>
</apex:outputpanel>
</apex:facet>
<apex:inputfield value="{!Account.BillingStreet}"></apex:inputfield>
<apex:inputfield value="{!Account.ShippingStreet}"></apex:inputfield>
</apex:pageblocksection>
</apex:pageblock>
</apex:form>
</apex:page>
Float
when it should befloat
. Maybe an image of what you see vs what you want would help as well