gpt4 book ai didi

java - Tapestry 5.4 core.properties 覆盖

转载 作者:行者123 更新时间:2023-11-29 04:33:08 25 4
gpt4 key购买 nike

我有一个 tapestry 5.4 项目,我想覆盖默认 core.properties 文件的一个元素。

我试图在 login_en.propertieslogin_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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com