You are using the wrong list, you should post this questions into the
"Tapestry users" <[email protected]>
My answer : I would use input parameters (emulating the pagelink component
that gets the page as an input parameter). You could easily pass two params.



Katia

2010/11/25 Tibo23 <[email protected]>

>
> Hello,
>
> I have a login component and I want to reuse it into several pages.
> Everything is ok until my issue : how to redirect to a specific page
> depending on the parent page which contains the component.
>
> -------------------------
>
> Page1 :
> <html>
> ...
> <t:login />
> ...
> </html>
>
> if login is successful, redirect to Page11 else redirect to Page 1
>
> -------------------------
>
> Page2 :
> <html>
> ...
> <t:login />
> ...
> </html>
>
> if login is successful, redirect to Page21 else redirect to Page 2
>
> -------------------------
>
> For the moment the redirection is done on the login component but the aim
> should be to do it into the page containing the login component.
> May I use parameter? May I use events?
>
> Thanks by advance for your help.
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Reusable-login-component-tp3279297p3279297.html
> Sent from the Tapestry - Dev mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to