Hi,

I have two pages A and B:
-user lands on A (browser location says /A)
-user clicks on a form's SubmitLink, onSubmit() says setResponsePage(new
B(state))
--in Firebug, I see POST, followed by GET /B
-user lands on B ( location is /B)
-user clicks browser back button and lands on A without server being hit at
all.

At this point I expected browser to issue GET /A and A's onBeforeRender to
run. is my expectation correct? If not, what is the expected behavior.

The reason for my question, is that I want to prevent user from "back"-ing
to A once on B. So I wanted to use A's onBeforeRender to evaluate state and
redirect someplace else. If my expectation above is incorrect, could someone
suggest a better approach?


thanks
-nikita

I am using Firebug with FF3/Win and Wicket 1.3.5

Here are A's initial response headers:
Server  Apache-Coyote/1.1
Cache-Control   no-cache, max-age=0, must-revalidate
Pragma  no-cache
Content-Type    text/html;charset=UTF-8
Content-Language        en-US
Content-Length  13209


-----
----------------
Nikita Tovstoles
vside.com
----------------

-- 
View this message in context: 
http://www.nabble.com/browser-back-button---shouldn%27t-onBeforeRender%28%29-execute--tp20508047p20508047.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to