简体   繁体   English

具有嵌入式链接的JSF本地化段落

[英]JSF localized paragraph with embedded links

What's the preferred way to embed an outputlink somewhere in the middle of a localized paragraph with JSF 1.2? 使用JSF 1.2在本地化段落中间嵌入输出链接的首选方法是什么?

Consider a message resource with the following: 考虑具有以下内容的消息资源:

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

and if you have an outputlink like: 并且如果您有类似的输出链接:

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

If it makes it any easier we are also using SEAM/facelets and icefaces. 如果更容易,我们还将使用SEAM / facelets和icefaces。

thanks... 谢谢...

You require a specialized form of layout panel component. 您需要一种特殊形式的布局面板组件。 Assuming there isn't one in your existing component library, you can learn how to write one on blog: JSF: a custom format panel control for localising component layout 假设现有组件库中没有该组件,则可以在博客上学习如何编写一个组件: JSF:用于本地化组件布局的自定义格式面板控件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM