开发者

How to add a html bold <b> in the jsf tags

I defined below pro开发者_运维百科perty in property file.

<b>Profile 1:</b> <br> Only the market(s) selected above

I set this in bean profile1

<h:outputText style="font-size:12px;" value="#{bean.profile1}" />

But result is

<b>Profile 1:</b> <br> Only the market(s) selected above

Can please anybody help how to give break and bold

in property file?


Use escape=false in the h:outputText:

<h:outputText style="font-size:12px;" value="#{bean.profile1}" escape="false"/>

Otherwise all special characters are escaped during jsf processing.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜