function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
YVYV 

i am not able to rerender outputPanel as well pageblock via actionFunction

My code is here


<apex:component controller="Type_Ahead_Component_Controller" >
     <apex:stylesheet value="{!URLFOR($Resource.AutoComplete,'/jquery-ui.css')}"/>
     <apex:includeScript value="{!URLFOR($Resource.AutoComplete,'/jquery-1.12.4.js')}"/>
     <apex:includeScript value="{!URLFOR($Resource.AutoComplete,'/jquery-ui.js')}"/>

     <apex:attribute name="sObj" type="String" description="sobject name"></apex:attribute>
     <apex:attribute name="fields" type="String" description="SObject field name"></apex:attribute>
     <apex:attribute name="index" type="string" description="SObject name as index" assignTo="{!objectName}" />

     <apex:pageBlock >
          <apex:pageBlockSection collapsible="false" title="{!objectName}">
               <input  id="{!index}objectSearch" value="{!searchTerm}"/>    
          </apex:pageBlockSection>
     </apex:pageBlock>
    
    <apex:outputPanel id="outerPanel"> 
        <apex:outputPanel id="innerPanel">
            <apex:pageBlock title="{!objectName} detail">
                <apex:pageBlockTable value="{!sobjectWrapper}" var="item" id="recordID">
                    <apex:outputField value="{item.name}" />
                </apex:pageBlockTable>
                <apex:pageBlockButtons location="Top">
                    <apex:commandButton value="Save" />
                </apex:pageBlockButtons>
            </apex:pageBlock>
        </apex:outputPanel>
    </apex:outputPanel>
     <!--apex:pageBlock title="{!objectName} detail" rendered="true" id="recordID">
         <apex:pageBlockTable value="{!sobjectWrapper}" var="item">
             <apex:outputField value="{item.name}" />
         </apex:pageBlockTable>
         <apex:pageBlockButtons location="Top">
             <apex:commandButton value="Save" />
         </apex:pageBlockButtons>
     </apex:pageBlock-->

     <apex:actionFunction name="showObjectInfo" action="{!showObjectDetail}"     reRender="outerPanel,innerPanel,recordID">  
          <apex:param assignTo="{!selectedObjectID}" name="selectedObjectID" value=""/> 
          <apex:param assignTo="{!tempFields}"  name="field" value="" />
          <apex:param assignTo="{!objectName}" name="objectName" value="" />
     </apex:actionFunction>
</apex:component>

Please provide me any solution
Thank you in advance
Gaurav Bhardwaj 70Gaurav Bhardwaj 70
sorry buddy not getting  your question , seems to be difficult
YVYV
there is an actionfunction on component and that function calling apex controller method , so basically using this actionfunction i want to rerender another pageBlock of that component to display records of particular object