How to make the value of <h: outputText> bold?
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?
+6
Suresh
source share3 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> +18
kpolice
source shareHow about including in a span to make it bold or add a CSS style and apply it.
<span style="font-weight:bold">My Value Bold!</span> or rather
<h:outputText value="AAAAAAA" style="font-weight:bold" /> +6
zapping
source shareYou should use a Class style , not a style, to simplify changes and maintenance.
<h:outputText value="#{bundle.Label_place}" styleClass="recordLabel"/> with a style defined in a common style sheet that you can use everywhere
.recordLabel { font-weight:bold; } +4
user738048
source share