Re: How to get request page in Wicket 1.5

2012-06-21 Thread vineet semwal
you can just log the client url in onexception if it's what you want .. but i have written a requestcyclelistener today that registers lastresponsepage ,i am trying to improve it.. On Thu, Jun 21, 2012 at 6:39 PM, LeaveNewb wrote: > Yeah, I've been to the RequestCycle page and saw the suggestion.

Re: How to get request page in Wicket 1.5

2012-06-21 Thread LeaveNewb
Yeah, I've been to the RequestCycle page and saw the suggestion. I was just hoping for an easier solution, since the previous version worked so well. I guess I just need to get off my lazy butt and do the work. ;) Thanks for the suggestions -- View this message in context: http://apache-wicke

Re: How to get request page in Wicket 1.5

2012-06-21 Thread robmcguinness
i build something like this for Wicket 1.3 that can give you can idea for Wicket 1.5 https://github.com/robmcguinness/wicket-events/blob/master/src/main/java/com/robmcguinness/WicketApplication.java#L30 https://github.com/robmcguinness/wicket-events/blob/master/src/main/java/com/robmcguinness/eve

Re: How to get request page in Wicket 1.5

2012-06-21 Thread vineet semwal
hi martin, i can try but i am not as fast as you ;) On Thu, Jun 21, 2012 at 1:27 PM, Martin Grigorov wrote: > 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 > > @Vin

Re: How to get request page in Wicket 1.5

2012-06-21 Thread Martin Grigorov
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 wrote: > i can t

Re: How to get request page in Wicket 1.5

2012-06-21 Thread vineet semwal
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

Re: How to get request page in Wicket 1.5

2012-06-21 Thread Martin Grigorov
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

Re: How to get request page in Wicket 1.5

2012-06-20 Thread LeaveNewb
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 possibl

Re: How to get request page in Wicket 1.5

2011-09-22 Thread Florian B.
Ah ok I see. I'll give it a try. Thanks! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-get-request-page-in-Wicket-1-5-tp3827411p3832806.html Sent from the Users forum mailing list archive at Nabble.com.

Re: How to get request page in Wicket 1.5

2011-09-21 Thread Igor Vaynberg
you can pass a PageReference to the edit page, something like setResponsePage(new EditPage(itemModel, getPageReference()) then when its time to go back you can say setResponsePage(reference.getPage()) -igor On Wed, Sep 21, 2011 at 1:11 AM, Florian B. wrote: > My idea is to store the current pa

Re: How to get request page in Wicket 1.5

2011-09-21 Thread Florian B.
My idea is to store the current page within the session and use it on later pages to navigate back to the previous page. For example I've got several pages with pageable lists of items the user can edit. When the use edits an item and clicks the save button he gets back to the previous page. This

Re: How to get request page in Wicket 1.5

2011-09-20 Thread Igor Vaynberg
why do you need the page? -igor On Tue, Sep 20, 2011 at 9:27 AM, Florian B. wrote: > Hi > > I'm looking for a way to get the page of the current request on Wicket 1.5. > I found an wiki entry about this but unfortunately I don't understand how to > retrieve the page. > > https://cwiki.apache.org