使用 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。
谢谢...
最佳答案
您需要一种特殊形式的布局面板组件。假设您现有的组件库中没有,您可以在博客上学习如何编写一个:JSF: a custom format panel control for localising component layout
关于java - 带有嵌入式链接的 JSF 本地化段落,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13961598/