Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to apply styles for particular string in Message ResourceBundle  RSS feed

 
vish nath
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

<hutputFormat value="#{msg.headerMessage}">
<f:param value="MyGrid"/>
</hutputFormat>

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
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!