You need to sign in to do that
Don't have an account?

how to get the Apex page Exception Messages before the Page refresh?
Hi Friends
I have Embedded the visual force page in the standard. I have refreshed the standard page when click the save button in the visual force page by using this method
<apex:pageBlockButtons location="bottom" >
<apex:commandButton value="Save" action="{!savePallet}" id="ipList" oncomplete="javascript:window.top.location = '/{!ILI__c.id}'; return true;" reRender="{!isError}"/>
<apex:commandButton value="cancel" action="{!cancelPallet}"/>
</apex:pageBlockButtons>
I have set this isError flag intially false in the constructor and put the flag value True in apex add Error messages locations.Some validation have in controller. validation result Exception message havn't displayed in the visual force page when click the save button. I want to get the apex Exception messages before the page refresh..
Please let me know your suggestion...
Thanks
Sundar
<apex:commandButton value="Save" action="{!savePallet}" id="ipList" oncomplete="javascript:window.top.location = '/{!ILI__c.id}'; return true;" reRender="{!isError}"/>
The reRender attribute is used to refresh a particular component, rather than having a boolean value. So reRender="idList" would re-render the visual element with the html id = idList
The rendered attribute can be assigned a boolean value - rendered = true or false is used to toggle rendering something on / off.