我有一个 tapestry 5.4 项目,我想覆盖默认 core.properties 文件的一个元素。
我试图在 login_en.properties
和 login_hu.properties
中添加一个新行 (core-default-error-banner=...
) 但它不会覆盖它。
有什么办法可以覆盖吗?
提前感谢您的回答。
最佳答案
如果您打算覆盖错误组件的标题行,只需在页面/组件模板中指定您自己的消息 ID,如下所示:
<t:errors banner="message:your-translated-error-msg-id" />
关于java - Tapestry 5.4 core.properties 覆盖,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42979615/