Hi
Sorry, my mistake (a little hasty here - In struts mode :) )
You should not be using <h:messages> for this -
Use <h:outputText escape="false" value="#{messagesBundle.message1}"/>
Hermod
-----Original Message-----
From: Enrique Medina [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 30, 2005 9:33 AM
To: MyFaces Discussion
Subject: Re: HTML code inside a message from a ResourceBundle
Where is that attribute? I can't see it in any of these tags:
http://myfaces.apache.org/tlddoc/x/message.html
http://myfaces.apache.org/tlddoc/x/messages.html
On Tue, 29 Mar 2005 13:10:47 +0200, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> 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.
>
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * *
>
>