Hi

Set the escape attribute on h:message to "true"


Hermod

-----Original Message-----
From: Enrique Medina [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 29, 2005 12:24 PM
To: MyFaces Discussion
Subject: HTML code inside a message from a ResourceBundle


Hi,

Is there any way to escape HTML code using the <h:message> tag?

Suppose I have the following message from a ResourceBundle:

message1 = Press the <a href="somePage.jsf"> link </a> to go to the
right page.

and then I use the messages tag:

<h:messages value="#{messagesBundle.message1}" />

but the literal string gets showed :-(

Any ideas?


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that the DnB NOR Group
cannot accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Reply via email to