You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by mateen <ma...@gmail.com> on 2013/01/16 07:59:23 UTC
Redirecting to a Page
Hi,
In my code after i validate the username and password i redirect the user to
a new page by simply returning Index.class from my validation function. Now
i have a requirement to also pass some params in the Query String like
Index?xyx=abc. How can i do this ?
Kind Regards
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Redirecting-to-a-Page-tp5719343.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Redirecting to a Page
Posted by Muhammad Gelbana <m....@gmail.com>.
Why are you redirecting from the "validation" method ? Wouldn't be more
intuitive to redirect from the "success" method ?
On Wed, Jan 16, 2013 at 9:03 AM, Taha Siddiqi <ta...@gmail.com>wrote:
> @Inject
> private PageRenderLinkSource linkSource;
>
>
> Object onMyEvent(){
> Link link = linkSource.createPageRenderLink(Index.class);
> link.addParameter("xyz", "abc");
> return link;
> }
>
>
>
> On Jan 16, 2013, at 12:29 PM, mateen wrote:
>
> > Hi,
> >
> > In my code after i validate the username and password i redirect the
> user to
> > a new page by simply returning Index.class from my validation function.
> Now
> > i have a requirement to also pass some params in the Query String like
> > Index?xyx=abc. How can i do this ?
> >
> > Kind Regards
> >
> >
> >
> >
> > --
> > View this message in context:
> http://tapestry.1045711.n5.nabble.com/Redirecting-to-a-Page-tp5719343.html
> > Sent from the Tapestry - User mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
>
>
Re: Redirecting to a Page
Posted by Taha Siddiqi <ta...@gmail.com>.
@Inject
private PageRenderLinkSource linkSource;
Object onMyEvent(){
Link link = linkSource.createPageRenderLink(Index.class);
link.addParameter("xyz", "abc");
return link;
}
On Jan 16, 2013, at 12:29 PM, mateen wrote:
> Hi,
>
> In my code after i validate the username and password i redirect the user to
> a new page by simply returning Index.class from my validation function. Now
> i have a requirement to also pass some params in the Query String like
> Index?xyx=abc. How can i do this ?
>
> Kind Regards
>
>
>
>
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/Redirecting-to-a-Page-tp5719343.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>