How to skip a page on back button

2012-03-01 Thread pmaks
Hi All,
 Is there any way to skip a page using back button. i.e.

Forward sequence: HomePage-Page1-Page2

*using browser back button*
Current Reverse sequence: Page2-Page1-HomePage 
Desired Reverse sequence: *Page2-HomePage* 

I've tried this.getPageMap().remove(this); in Page1 constructor, but it is
not working.

Any idea..?

I'm using Wicket 1.4.19

Thanks



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-skip-a-page-on-back-button-tp4434470p4434470.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: How to skip a page on back button

2012-03-01 Thread Wilhelmsen Tor Iver
 Is there any way to skip a page using back button. i.e.

 Forward sequence: HomePage-Page1-Page2

If the link from Page1 to Page2 is a Javascript link that does a 
location.replace('url for Page2') the browser should not remember Page1 in the 
history, if memory serves. Removing from the PageMap is probably something you 
need to handle as a consequence of the link though.

- Tor Iver

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org