Yes, I found this issue https://issues.apache.org/jira/browse/WICKET-1478. I'm using wicket 1.3.5 which is supposed to solve it. However, my issue remains.
Michael Sparer wrote: > > which version are you using? for me it sounds like this problem, see the > (solved) jira issue: https://issues.apache.org/jira/browse/WICKET-1478 > > but I'm sure you don't mean that behaviour as you certainly searched the > list and the jira before posting, am I right? ;-) > > regards > Michael > > > ckuehne wrote: >> >> I have the following use case: >> >> I go from Page A to Page B passing an instance of A as return page to B. >> In B I click a link which brings me back to the (cached(?)) instance of >> A. In the onBeforeRender-method of a child component of A I want to >> redirect if some condition is >> >> protected void onBeforeRender() { >> if(condition){ >> throw new >> RestartResponseException(RedirectPage.class); >> } >> super.onBeforeRender(); >> } >> >> This fails with the following: >> >> WicketMessage: Error attaching this container for rendering: >> [MarkupContainer [Component id = tabs]] >> >> Root cause: >> >> org.apache.wicket.RestartResponseException >> >> Complete stack: >> >> org.apache.wicket.WicketRuntimeException: Error attaching this container >> for rendering: [MarkupContainer [Component id = tabs]] >> at >> org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1601) >> at org.apache.wicket.Component.onBeforeRender(Component.java:3682) >> at >> org.apache.wicket.extensions.markup.html.tabs.TabbedPanel.onBeforeRender(TabbedPanel.java:205) >> at >> org.apache.wicket.Component.internalBeforeRender(Component.java:1002 >> >> I use wicket 1.3.5 >> >> >> >> > > -- View this message in context: http://www.nabble.com/Unexpected-RuntimeException%3A-RestartResponseException-in-onBeforeRender-of-cached-page-tp21683689p21690259.html Sent from the Wicket - User 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