| Author |
How to apply styles for particular string in Message ResourceBundle
|
vish nath
Greenhorn
Joined: Oct 08, 2009
Posts: 3
|
|
Hi,
I am facing problem to make display a word in bold using Message Resource Bundle in JSF.
My requirement is:
Messages.properties.
headerMessage = "Given label {0} does not match an enumeration. "
In mypage.jsp:
<h utputFormat value="#{msg.headerMessage}">
<f:param value="MyGrid"/>
</h utputFormat>
I want to display MyGrid in Bold.
and If i want to display images in {0} token place how do I have to pass image tag?
Please give me suggestion.
Thanks & Regards,
Vish
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 14573
|
|
You can use the "escape" attribute to permit use of raw HTML in an outputText item. Use it wisely, however. I've seen some really awful apps where they did structural HTML via text substitution.
|
Customer surveys are for companies who didn't pay proper attention to begin with.
|
 |
 |
|
|
subject: How to apply styles for particular string in Message ResourceBundle
|
|
|