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
neil_edwards_fcca1.389781386123482E12neil_edwards_fcca1.389781386123482E12 

Rerender on save after InlineEdit not working

The Pagemessages should rerender when the inLineEdit is saved on the <apex:detail> tag . It isnt.  When its manually refreshed all Pagemessages render correctly. Any ideas??

Thanks in advance

<apex:page standardcontroller="Fees__c" tabstyle="Fees__c" showheader="true" standardstylesheets="true" extensions="FeeSaveAndReturnController">

    <chatter:feedwithfollowers entityID="{!Fees__c.id}" />

<apex:stylesheet value="/sCSS/21.0/sprites/1297816277000/Theme3/def​ault/gc/versioning.css" />  

<apex:pageblock >

<apex:pageblocksection columns="1" title="Messages & Warnings" >


<apex:pagemessages rendered="true" id="msg2" />

<apex:outputPanel id="warnings" layout="block">

  <apex:PageMessage summary="The Deal is an approval process and cannot be edited until this has completed."
            severity="error"
            strength="2"
            rendered="{!Fees__c.Deal_Protocol_Ref__r.In_Approval__c}"         
            />
 
   <apex:PageMessage summary="The required {!Fees__c.Variables__c} x Variable(s) below have not been entered. This term cannot be approved."
            severity="error"
            strength="2"
            rendered="{!Fees__c.Incomplete__c}"         
            />
      
      <apex:PageMessage summary="This term has been APPROVED. "
            severity="confirm"
            strength="1"
            rendered="{!Fees__c.Term_Sheet_Approved__c && Fees__c.Deleted__c =false}"
            />
           
      
      <apex:PageMessage summary="This term has been marked as Deleted. To 'undelete' this term use the Clone button. "
            severity="error"
            strength="3"
            rendered="{!Fees__c.Deleted__c}"
            />     
     <apex:PageMessage summary="{!Fees__c.Key_Considerations__c}"
            severity="info"
            strength="3"
            rendered="{!Fees__c.Key_Considerations__c !=null}"
            />
     </apex:outputPanel>
              
           <apex:form >
   <apex:commandButton value="Delete this Term"  onclick="return confirm('You have chosen to delete this item. \nPlease confirm this is what you want to do.');"  action="{!DeleteTerm}" />
   <apex:commandButton value="Make Changes"  onclick="return confirm('You have chosen to unlock this approved term. Once unlocked it will need re-approving. \nPlease confirm this is what you want to do.');"  action="{!unlock}" rendered="{!Fees__c.Term_Sheet_Approved__c}"/>
 
     <apex:outputText value="{!Fees__c.deal_protocol_ref__r.id}" rendered="false" /> 

   </apex:form>
          
   </apex:pageblocksection>
    </apex:pageblock>      
     
         <apex:detail relatedList="false" title="true" inlineedit="true" id="mydetail" rerender="warnings"/>  
    
</apex:page>
Vinit_KumarVinit_Kumar
I can see that your <apex:pagemessages> tag is outsaide <apex:outputPanel> whihch is being refreshed through reRender attribute.

Can you put it inside and then try the same,it should work then.

If this helps,please mark it as best answer to help others :)
neil_edwards_fcca1.389781386123482E12neil_edwards_fcca1.389781386123482E12
Doesnt make a difference I'm afraid. Any other ideas? I've also tried just rerending a specific page message and that doesnt work either.