在资源包中使用html标签(using html tags in resource bundle)
我尝试从包含html标签的资源包中放入一条消息,例如:
application.portal.action.help=test <a href\="https://google.ro" target\="_blank">the opt in conditions</a>在jsf outputLabel中:
<h:outputLabel id="test" value="#{myupmessages['application.portal.action.help']}"></h:outputLabel>嗯...文本呈现为呈现链接的纯文本iso。
你有什么想法..为什么?
谢谢。
I try to put a message from a resource bundle which contains html tags like:
application.portal.action.help=test <a href\="https://google.ro" target\="_blank">the opt in conditions</a>in a jsf outputLabel:
<h:outputLabel id="test" value="#{myupmessages['application.portal.action.help']}"></h:outputLabel>Well...the text is rendered as a plain text iso of rendering the link.
Do you have any ideea ..why?
Thanks.
最满意答案
解决方案:
我需要添加:
escape="false"到outputLabel控件:)
Solution found:
I do need to add:
escape="false"to the outputLabel control :)
更多推荐
portal,iso,action,test,电脑培训,计算机培训,IT培训"/> <meta name="descri
发布评论