Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make a value of <h:outputText> bold?

Tags:

jsf

I have the following code:

<h:outputText id="dateVal" value="#{items.date}">  
<f:convertDateTime pattern="MMM-yy" />    
</h:outputText> 

How can I display the value #{items.date} in bold?

like image 654
Suresh Avatar asked Jan 25 '10 07:01

Suresh


1 Answers

Just do:

<h:outputText value="AAAAA" style="font-weight:bold"/>

and this code will output the following html:

<span style="font-weight:bold">AAAAA</span>
like image 151
kpolice Avatar answered Oct 12 '22 11:10

kpolice