from what i can see that redirect is a HARD redirect to a page. So not checking what it should do because setResponsePage(Page) doesn't have to do a redirect.. (or you also have to set setRedirect(true))
And i think in some cases like logon you really want a redirect.

So it could be removed i think... Because it doesn't do much more then:

setResponsePage(page)
setRedirect(true)

or in 1.1 head you can now do:

setResponsePage(page.class)

This will cause a redirect and the resulting page will be bookmarkable..
So redirectToInterceptPage is used i think for going to a login page.
And then setResponsePage(LoginPage.class) is i think the best choice because a login page should be bookmarkable anyway.

johan


Eelco Hillenius wrote:
I mean, setResponsePage.

Eelco Hillenius wrote:

Actually, now that I look at it, it isn't even clear what redirectToInterceptPage should do what can't be done with setResponsePage. Idea's anyone? If we cannot find a good case - I might have missed something - I think we should remove this method from the API.

Josh, have you tried using setResponse instead of redirectToInterceptPage?

Eelco


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to