You need to sign in to do that
Don't have an account?
dkorba2k5
Detail Section Rerender
OK ... I must be missing something. I have the following VF page and it works great except that I can't seem to figure out how to get the <apex:detail> section to rerender after saving records into the database. Only the pageblock is rerendering. So I need basically a full page rerender after saving. Thanks
Code:
<apex:page StandardController="Timesheet__c" extensions="TimeSheetDetails" tabStyle="Timesheet__c" sidebar="true" standardStylesheets="true" showHeader="true" id="page"> <style> .dim_a {width:300px; font-family: Verdana; font-size: 10px; font-weight: normal;} .tabletext {font-family: Verdana; font-size: 10px; font-weight: normal;} </style> <apex:detail relatedList="False"/> <apex:form > <apex:pageBlock title="Timesheet Details Edit"> <apex:pageBlockButtons > <apex:commandButton value="Save" action="{!save}" rerender="rows status="outStatus"/> <apex:commandButton value="Add" action="{!add}" rerender="rows" status="outStatus"/> <apex:commandButton value="Reset" action="{!reset}" rerender="rows" status="outStatus" immediate="true" /> <br>  <apex:actionStatus startText="(.................working.................)" stopText="" id="outStatus" onstop="Reset"/> </apex:pageBlockButtons> <apex:pageBlockTable border="1" cellpadding="2" value="{!entries}" var="a" id="rows" styleClass="tabletext"> <apex:column width="20px"><apex:inputField value="{!a.Del__c}" required="false" styleClass="tabletext"/> <apex:facet name="header">Remove</apex:facet> </apex:column> <apex:column width="270px"><apex:inputField value="{!a.Description__c}" required="false" styleClass="dim_a"/> <apex:facet name="header">Description</apex:facet> </apex:column> <apex:column width="30px"><apex:inputField value="{!a.Start_Date__c}" required="true" styleClass="tabletext"/> <apex:facet name="header">Start Date</apex:facet> </apex:column> <apex:column width="30px"><apex:inputField value="{!a.End_Date__c}" required="true" styleClass="tabletext"/> <apex:facet name="header">End Date</apex:facet> </apex:column> <apex:column width="10px"><apex:inputField value="{!a.Quantity__c}" required="true" styleClass="tabletext"/> <apex:facet name="header">Billable Hrs</apex:facet> </apex:column> <apex:column width="10px"><apex:inputField value="{!a.Non_Billable_Qty__c}" required="false" styleClass="tabletext"/> <apex:facet name="header">Non-Billable Hrs</apex:facet> </apex:column> </apex:pageBlockTable> </apex:pageblock> </apex:form> </apex:page>
If you want a full page refresh, bind to quickSave instead of save, and remove your rerender attribute.
(Also if you did not notice, you did not close the rerender="rows" attribute with a double quote for your save button.
Try removing status too? As long as you are returning null and taking no other ajax actions you should get a full page refresh.