VisualForce Page:
<apex:page standardController="Account" extensions="InlineEditingHelper">
<apex:form>
<apex:pageBlock title= "outputcomponents">
<apex:outputPanel id="editfield">
<apex:outputlabel value="Account Name (Double Click To Edit) : " for="Accname">
<apex:actionSupport event="ondblclick" action="{!inlineEdit}" rerender="editfield"/>
</apex:outputlabel>
<apex:outputText label="" value="{!Account.Name}" rendered="{!NOT(editmode)}" id="Accname"/>
<apex:inputText label="" value="{!Account.Name}" rendered="{!editmode}" id="Accname2"/>
</apex:outputPanel>
</apex:pageBlock >
</apex:form>
</apex:page>
Controller Extension
public with sharing class InlineEditingHelper {
public boolean editmode {get;set;}
public InlineEditingHelper(ApexPages.StandardController controller) {
editmode = false;
}
public void inlineEdit() {
system.debug('entered here');
editmode = true;
}
}
I got this code but not able to implement it on my reference
<apex:outputField with inlineEditsupport
developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/…