开发者

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

开发者 https://www.devze.com 2023-03-14 09:21 出处:网络
I defined below pro开发者_运维百科perty in property file. <b>Profile 1:</b> <br> Only the market(s) selected above

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

精彩评论

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