Hi, Open a stateful page in a tab/window, then copy the url from the address bar and open it in a new tab/window. Then go back to the first tab/window and try to click on any stateful link. This will lead to StalePageException.
It is thrown because Wicket detects that the same page instance has been rendered between the render of the current page and the click on the link. Wicket does this because it is not sure whether there are any changes in the page tree hierarchy between the initial rendering and the click event. It is even possible that this link is no more existing in the last version of the page, so this click could lead to ComponentNotFoundException if StalePageException is not thrown earlier. StalePageException just leads to render of the current page. So the user will see the last version of the page and (s)he will need to click the link again. On Tue, Dec 18, 2012 at 4:47 PM, amit.jha <[email protected]> wrote: > Hi, > > Thanks for your posting. > > I am working on some application and was getting stalePageException.The sad > part of this is that i do not know how it is reproduciable.I searched in > the > forums and tried all suggested ways of reproducing it,but fail to reproduce > it. What i observed in my application is that whenever i was getting > SessionExpiry Page in my application,i encountered the stalePageException > and based on that i am suspecting that it was coming due to that.But now , > sessionExpiray page is not coming as well as not stalePageException. I am > using wicket 1.5.7. > > Do you have idea, what all other ways by which it can be reproducible? i > tried all combination of reproducing it based on as much knowledge i have > in > wicket but failed to reproduce it.I have to give some reason to my teams > that why it was coming earlier and why it is not coming now and kind of > concrete reasoning. Any help would be highly appreciated. > Thanks in advance > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/StalePageException-handling-issue-tp4579247p4654887.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com <http://jweekend.com/>
