I think we should add an implementation of IRequestCycleListener in wicket-core that tracks the request and response pages and save this info in the request cycle's metadata
@Vineet, Thomas, Andrea: do you want to contribute this ? On Thu, Jun 21, 2012 at 10:52 AM, vineet semwal <[email protected]> wrote: > i can think of these 2 ways.. > > 1) you can create a requestcycle listener which > onRequestHandlerResolved checks if it's the pagrequesthandler ,if it's > set the pagename or whatever you want to into requestcycle metadata > and retrieve it later when you want to. > > 2) there is this another way but it will only work in case of your > customexception ,just save pagename or what ever you want to in your > customexception and onexception check if it's your customexception and > retrieve whatever you have saved. > > On Thu, Jun 21, 2012 at 12:37 PM, Martin Grigorov <[email protected]> > wrote: >> Hi, >> >> See >> https://cwiki.apache.org/confluence/display/WICKET/RequestCycle+in+Wicket+1.5 >> Also take a look at >> org.apache.wicket.protocol.http.RequestLoggerRequestCycleListener. It >> tracks the requested requesthandler and the response requesthandler. >> If the handler is an instance of IPageRequestHandler then you can get >> the page instance with #getPage(). >> >> On Thu, Jun 21, 2012 at 12:01 AM, LeaveNewb <[email protected]> wrote: >>> I'm having the same problem, but passing a page through will not work for >>> me. >>> >>> I used to use the Page passed in to onRuntimeException to send an error >>> report to the developers that included the page the user was on. I can't >>> seem to get that information with the RequestCycle. >>> >>> Is this still possible with 1.5? >>> >>> >>> >>> -- >>> View this message in context: >>> http://apache-wicket.1842946.n4.nabble.com/How-to-get-request-page-in-Wicket-1-5-tp3827411p4650140.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 >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> > > > > -- > thanks, > > Vineet Semwal > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
