RestartResponseAtInterceptPage

2011-01-11 Thread Eike Kettner
Hi

For wicket 1.5.x I created a custom RequestHandler that also renders
pages. Now I like to use this handler in
RestartResponseAtInterceptPageException. But the class only accepts a
Page, and then schedules a RenderingPageRequestHandler. Is there any
reason why not having a custom handler be the target for an intercept
request? I used the InterceptData class which is public for now and
found it working ok. But I'm not sure if I miss something? I'm also
remembering that it also did not work in wicket 1.4.x to set a custom
RequestTarget to use for RestartResponseAtInterceptPageException.

Thanks in advance for any help!
Regards,
Eike



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: RestartResponseAtInterceptPage

2011-01-11 Thread Martin Grigorov
Hi,

I guess it accepts a Page because this is what the class name
states: RestartResponseAtIntercept*Page*Exception

But looking at the source it should be quite easy to create your own
Exception which accepts IRequestHandler and does the same.
If you think it should be in the framework then file a ticket in Jira for
improvement.

On Tue, Jan 11, 2011 at 1:09 PM, Eike Kettner n...@eknet.org wrote:

 Hi

 For wicket 1.5.x I created a custom RequestHandler that also renders
 pages. Now I like to use this handler in
 RestartResponseAtInterceptPageException. But the class only accepts a
 Page, and then schedules a RenderingPageRequestHandler. Is there any
 reason why not having a custom handler be the target for an intercept
 request? I used the InterceptData class which is public for now and
 found it working ok. But I'm not sure if I miss something? I'm also
 remembering that it also did not work in wicket 1.4.x to set a custom
 RequestTarget to use for RestartResponseAtInterceptPageException.

 Thanks in advance for any help!
 Regards,
 Eike



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: RestartResponseAtInterceptPage

2011-01-11 Thread Eike Kettner
Hi Martin,

thank you for your response. Of course I was expecting
RestartResponseAtIntercept*Page*Exception to accept a Page, while
looking for something like RestartResponseAtInterceptHandlerException
;-)

I created my own Exception that accepts a request handler. I subclassed
ResetResponseEx as well, which schedules my RequestHandler. But then I
don't know how to make Component.continueToOriginalDestination() work
again. RestartRespAtInterceptPageEx uses a class InterceptData to save
the original request url in the session.
Component.continueToOringinalDestination() calls the same named static
method of RestartResponseAtInterceptPageExc. So I just used the class
InterceptData the same way, but its javadoc comment states, that it's
not part of wickets public api and will be package private in near
future. So I don't know where to plugin my code.

Regards,
Eike


On [Tue, 11.01.2011 14:15], Martin Grigorov wrote:
 Hi,
 
 I guess it accepts a Page because this is what the class name
 states: RestartResponseAtIntercept*Page*Exception
 
 But looking at the source it should be quite easy to create your own
 Exception which accepts IRequestHandler and does the same.
 If you think it should be in the framework then file a ticket in Jira for
 improvement.
 
 On Tue, Jan 11, 2011 at 1:09 PM, Eike Kettner n...@eknet.org wrote:
 
  Hi
 
  For wicket 1.5.x I created a custom RequestHandler that also renders
  pages. Now I like to use this handler in
  RestartResponseAtInterceptPageException. But the class only accepts a
  Page, and then schedules a RenderingPageRequestHandler. Is there any
  reason why not having a custom handler be the target for an intercept
  request? I used the InterceptData class which is public for now and
  found it working ok. But I'm not sure if I miss something? I'm also
  remembering that it also did not work in wicket 1.4.x to set a custom
  RequestTarget to use for RestartResponseAtInterceptPageException.
 
  Thanks in advance for any help!
  Regards,
  Eike
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 

-- 
email: e...@eknet.org   https://www.eknet.org  pgp: 481161A0

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org