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]

Reply via email to