Hi !

Use events and callbacks, see ComponentResources.triggerEvent

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

>
> How to tell the component from the beginning where to go? Because it
> depends
> on the parent page where the login component is included AND on a
> authentication fonction success?
>
> Here is my Login component :
>
> public class Login {
>
>        @Inject
>        private IAuthenticationService authenticationService;
>
>        @Property
>        private String login;
>
>        @Property
>        private String password;
>
>        public Object onSuccess () {
>                if (authenticationService.login (login, password) != null) {
>                        return (Main.class);
>                }
>                return (Index.class);
>        }
>
> }
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Reusable-login-component-tp3279297p3280031.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
Regards,
Christophe Cordenier.

Committer on Apache Tapestry 5
Co-creator of wooki @wookicentral.com

Reply via email to