在 Wicket 属性 文件的句子中嵌入超链接

Embed hyperlink in sentence for Wicket property file

我正面临这样一种情况,我想显示一个 link:
有关更多信息,请查看我们的常见问题解答。
在 link 之后显示句号的位置。为此定义多个属性似乎有点矫枉过正 例如
faq.info=For more information check out our faq.markup=FAQ faq.href=http://www.some.very.nice.url.com faq.fullstop=.
我也不想只在 html 中包含点。是否可以在末尾插入点或在中间插入 link?

你可以embed components inside string messages:

<wicket:message key="faq.info">
  <a wicket:id="faq">
    <wicket:message key="faq.info.label"/>
  </a>
</wicket:message>


faq.info=For more information check out our ${faq}.
faq.info.label=FAQ

为此,您必须从 Java 代码中添加 ID 为 "faq" 的 link。