IE Backward Compatibility

Simple Tapestry Integration

You may want to create an internationalized web site, here is an example of a properties file :

password-required=Password must include at least one digit and one special characterregister=Not registered yet ?: >> Register nowforgotten-password=Forgot your password?sign-in=Sign insubmit-label=OKplease-sign-in=Please, sign in

//Test the values of login and password, or pass the values to your UserManager

//if(!userManager.successfullyAuthenticates(login, password)){

if(!"tapestry".equals(login) || !"tapestry".equals(password)){

String errorMessage = "Wrong login or password";

if(messages.contains("wrong-login-password"))

errorMessage = messages.get("wrong-login-password");

loginForm.recordError(errorMessage);

}

}

/*

* This method is only called if you've NOT used the "recordError" method exposed by the Form component

*/

@OnEvent(value=EventConstants.SUCCESS, component="loginForm")

public void loggingSuccess(){

//save the user in the session

}

/*

* This method is only called if you've used the "recordError" method exposed by the Form component

*/

@OnEvent(value=EventConstants.FAILURE, component="loginForm")

public void loggingFailure(){

//increment a persistent counter to limit the number of tries

}

/*

* This method is always called

*/

@OnEvent(value=EventConstants.SUBMIT, component="loginForm")

public void loggingSubmit(){

//

}

Advanced Tapestry Integration Based On Tapestry Security

Tynamo's tapestry-security is a comprehensive security module that provides tight integration with Apache Shiro, an established, high-performing and easy-to-use security framework for Tapestry applications.This project comes with a variety of components allowing you to easily get informations about the connected user.You only need to add the following dependency to your project, and then configure cautiously your project as explained in the guide.