Hi, Correct! Please add your findings in the wiki about migration [1] so that other users can benefit too. Thanks for your help!
1. https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+1.5 2010/8/12 dzb <zenberg.d...@gmail.com> > Hi, Martin Grigorov > > sorry, still about RequestCycle. > > There's a another method wicket users preffer to override for custom > exception page on RequestCycle on 1.4.x. > > public Page onRuntimeException(Page page, RuntimeException e) { > ... > DB transaction rollback . > ... > if (e instanceof MyException) return new MyErrorPage(e); > ... > } > > so, we should create a new ExceptionMapper class to handle that, right? > > > dzb,zenberg.d...@gmail.com > 2010-08-12 > > ----- Original Message ----- > *From: *Martin Grigorov <mgrigo...@apache.org> > *To: *users,zenberg.ding <users@wicket.apache.org,zenberg.d...@gmail.com> > *Sent: *2010-08-12, 18:11:39 > *Subject: *Re: Wicket 1.5-M1 migration experiences > > Good catch! > > There is no WebRequestCycle anymore. You'll need to extend RequestCycle > now. > Override org.apache.wicket.Application.createRequestCycle(Request, > Response) to return your class. > The current entry point is > org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(). > For now you'll have to wrap this method with try/finally to simulate > onBefore/onEnd. > > We will discuss it and probably these two methods will be added again there > for M2. > > 2010/8/12 dzb <zenberg.d...@gmail.com> > >> Hi, >> >> It seems RequestCycle has a big change in 1.5-M1. >> >> How can I do things like below codes on 1.5 ? >> >> public class MyRequestCycle extends WebRequestCycle { >> >> @Override >> protected void onBeginRequest() { >> super.onBeginRequest(); >> ... >> } >> >> @Override >> protected void onEndRequest() { >> ... >> super.onEndRequest(); >> } >> } >> >> Where is the request pipline's entry? >> >> dzb,zenberg.d...@gmail.com >> 2010-08-12 >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> > >