yes,
<h:message(s)/> has no escape attribute.
But you can extend <x:message(s)/> of MyFaces and provide a patch that *all* user will be able to use an optional *escape html* feature.
-Matthias
[EMAIL PROTECTED] wrote:
Hi
Yeah, but not in your stated case - There you where using a resourcebudle
There is no "html" escaping on message(s) as far as I know, but I guess you could subclass the renderer and add that.
Hermod
-----Original Message----- From: Enrique Medina [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 30, 2005 3:32 PM To: MyFaces Discussion Subject: Re: HTML code inside a message from a ResourceBundle
I know the h:outputText can be escaped, but my problem is with h:message, as I use it to render a FacesMessage I have created sometime in the lifecyle of the request (usually in the invoke application phase).
On Wed, 30 Mar 2005 10:15:05 +0200, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
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.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*
* * *
-- Matthias We�endorf Aechterhoek 18 DE-48282 Emsdetten Germany phone: +49-2572-9170275 cell phone: +49-179-1118979 email: matzew AT apache DOT org url: http://www.wessendorf.net callto://mwessendorf (Skype) icq: 47016183

