Hi 

It _does_ work with redirectToInterceptPage and redirectTo,  but I get
this error below...

wicket.WicketRuntimeException: Already redirecting to
'/idea/survey?component=4&version=0&interface=IRedirectListener'.
Cannot redirect more than once
....

Josh





On 7/16/05, Matej Knopp <[EMAIL PROTECTED]> wrote:
> It doesn't seem to be inconsistent to me.
> 
> SetResponsePage sets a page to respond. But IMHO to respond you need an
> action first. In constructor, there's no such action. When you click on
> a link or submit a form, it is an action. So SetResponsePage works.
> 
> But this is just as I see it. It's possible that it's meant otherwise
> and it's just a bug.
> 
> Maybe it would be better if SetResponsePage worked this well. But I
> think that it's worth implementing only if it's not a big change/hack to
> wicket action/request/response handling.
> 
> -Matej
> 
> Eelco Hillenius wrote:
> > Yes, but I think it is inconsistent. Don't you think so?
> >
> > Eelco
> >
> > Matej Knopp wrote:
> >
> >> This does work, but you have to call redirectTo instead of
> >> setResponsePage in your constructor.
> >>
> >> like
> >> redirectTo (new Page1(parameters));
> >>
> >> -Matej
> >>
> >> josh lim wrote:
> >>
> >>> I tried to use a setRespnosePage at first since that was how I used it
> >>> on the "onSubmit" callbacks... but it did not redirect when I put it
> >>> in the constructor of this Start page.
> >>>
> >>> I used to play with struts a little and it had a "forward" tag which
> >>> allowed a forwarding of requests together with all the
> >>> parameters...which is essentially what I want to do.
> >>>
> >>> I would have thougth setResponsePage(new Page1(parameters)) could have
> >>> done the same thing.
> >>>
> >>> Josh
> >>>
> >>>
> >>>
> >>> On 7/16/05, Eelco Hillenius <[EMAIL PROTECTED]> 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_idt77&alloc_id492&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
> >
> 
> 
> 
> -------------------------------------------------------
> 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_idt77&alloc_id492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to