It appears that returning an ILink is working for you. I would like to do
whatever you have done so I can return an ILink. Please see list subject
'RedirectException issues' for more information about an exception I am
getting attempting to return an ILink. How did you get your stuff working?
What specific version of Tapestry are you using? Does anything need to be
setup in Hivemind to enable returning ILinks.
Thanks,
Joseph
On 9/5/05, Leonardo Quijano Vincenzi <[EMAIL PROTECTED]> wrote:
>
> I was looking the other day some article about Redirect-After-Post in
> Tapestry. But I don't think it was updated to Tapestry 4.
> I guess *this* is the way to do that, or are the any special
> considerations?
>
> --
>
> Ing. Leonardo Quijano Vincenzi
> Director Técnico
> DTQ Software
>
> Howard Lewis Ship escribió:
>
> >Which can be shortened to:
> >
> >
> > @InjectObject("engine-service:page")
> > public abstract IEngineService getPageService();
> >
> > public ILink redirect(IPage page)
> > {
> > IRequestCycle cycle = getRequestCycle();
> >
> > return getPageService().getLink(cycle, false, getPageName());
> > }
> >
> >On 9/5/05, Pete <[EMAIL PROTECTED]> wrote:
> >
> >
> >>Will this help?
> >>
> >>[snip]
> >>
> >> @InjectObject("engine-service:page")
> >> public abstract IEngineService getPageService();
> >>
> >> public void redirect(IPage page)
> >> {
> >> IRequestCycle cycle = getRequestCycle();
> >> Object param = page.getPageName();
> >> ILink link = getPageService().getLink(cycle, false, param);
> >>
> >> throw new RedirectException(link.getURL());
> >> }
> >>
> >>[snip]
> >>
> >>
> >>
> >>On Mon, 05 Sep 2005 10:12:27 +0200, Mohammad Hassan Shamsi
> >><[EMAIL PROTECTED]> wrote:
> >>
> >>
> >>
> >>>Jone.hwk wrote:
> >>>
> >>>
> >>>
> >>>>However,in tapetry4,in rendered page "actived" by "throw a
> >>>>PageRedirectException",you'll see all unicode characters("utf-8")
> >>>>coming into "????"
> >>>>
> >>>>
> >>>>
> >>>>---------------------------------------------------------------------
> >>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>>For additional commands, e-mail: [EMAIL PROTECTED]
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>Hi .
> >>>
> >>>Beacuse of Back and Froward, i neeed to use Redirect Page.
> >>>Please help me.
> >>>
> >>>---------------------------------------------------------------------
> >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >
> >
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>