【问题标题】:JSF localized paragraph with embedded links带有嵌入链接的 JSF 本地化段落
【发布时间】:2012-12-07 08:22:38
【问题描述】:

在 JSF 1.2 的本地化段落中间某处嵌入输出链接的首选方法是什么?

考虑具有以下内容的消息资源:

my.paragraph=If you have questions, visit our {0} for further information
my.paragraph.token.0=help

如果你有这样的输出链接:

<f:outputLink value="javascript:void(0)" onclick="pophelp('#facesContext.externalContext.requestContextPath}/help/index.html');">#{messages['my.paragraph.token.0']}</ice:outputLink> 

如果它更容易,我们也会使用 SEAM/facelets 和 icefaces。

谢谢...

【问题讨论】:

    标签: java jsf jsf-1.2


    【解决方案1】:

    您需要一种特殊形式的布局面板组件。假设您现有的组件库中没有,您可以在博客上学习如何编写:JSF: a custom format panel control for localising component layout

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-07-07
      • 1970-01-01
      • 2011-08-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多