venkat
venkat

Reputation: 11

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

I defined below property 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?

Upvotes: 1

Views: 2153

Answers (1)

Matt Handy
Matt Handy

Reputation: 30025

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.

Upvotes: 2

Related Questions