Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JSF - <h:outputText> making some of words Bold [duplicate]

Tags:

java

jsf

tags

How can we go about making some of the words in a sentence appear in BOLD

for example - I'm trying to put one of the words of a sentence in BOLD i.e.

sentence is "please select the amount"

amount should be in BOLD, and now, when I use

message = "please select the <b>amount </b>" 

This doesn't work. It simply shows

please select the <b>amount </b>.

How can I get this to work?

like image 790
karansardana Avatar asked Mar 18 '10 05:03

karansardana


1 Answers

Setting the escape attribute to false allows you to insert html tags

<h:outputText escape="false" value="please select the <b>amount</b>"/>
like image 158
stacker Avatar answered Oct 22 '22 11:10

stacker