+ Start a Discussion
YonathanYonathan 

IE back button

Hi all,

 

I have a Visualforce page with a commandbutton.

 

If I click on my button, the page is refreshed.

Then, I click again on my button: the page is refreshed again.

Then, I click on the IE Back button and I get the following error message "Webpage has expired".

 

 

Here is my VF Page:

 

<apex:page controller="testBack"> <apex:form > <apex:commandlink action="{!MyClick}" value="Click Me" /> </apex:form> </apex:page>

 Here is my Ctrl:

 

public class testBack { public PageReference MyClick() { //do something return null; } }

 

Any workaround for this problem?

 

 

 

CRM08CRM08

Hi Yonathan,

 

That's not problem with your code . Problem with IE7 & IE 8.Even I got same error message.

 

pls chk this link:

http://www.tech-archive.net/Archive/Windows/microsoft.public.windows.inetexplorer.ie6.browser/2007-02/msg00348.html

 

Thanks.

ctewellctewell

Add cache="true" to the apex:page component tag.

 

<apex:page controller="testBack" cache="true">
    <apex:form >
        <apex:commandlink action="{!MyClick}" value="Click Me" />
    </apex:form>
</apex:page>