如何覆盖Apache Tynamo模板生成的HTML?
我目前正在转换我的页面以用于tapestry-bootstrap,登录表单看起来有点难看.
而不是尝试自定义或重复使用提供的表单更好地编写您自己的登录页面和登录表单.
它非常简单,你可以先复制一下:
这只是一个示例登录页面,请确保删除任何不需要的内容.
之后不要忘记告诉tapestry-security现在你有自己的sigin页面:
@Contribute(SymbolProvider.class)
@ApplicationDefaults
public static void applicationDefaults(MappedConfiguration<String, Object> configuration)
{
// Tynamo's tapestry-security (Shiro) module configuration
configuration.add(SecuritySymbols.LOGIN_URL, "/signin");
}
Run Code Online (Sandbox Code Playgroud)
而已.