myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Koci (JIRA)" <>
Subject [jira] Commented: (MYFACES-218) Javascript alert Should not display UnicodeEncoder dispose result
Date Thu, 28 Apr 2005 09:32:25 GMT
     [ ]
Martin Koci commented on MYFACES-218:

I have same problem with custom messages renderer with optional layout "alert" which is rendering
messages in javascript alert. 

Problem is in HtmlResponseWriterImpl.writeText(Object text, String componentPropertyName)
where following is used:
        if (isScriptOrStyle())
            _writer.write(UnicodeEncoder.encode(strValue, false, false));
            _writer.write(HTMLEncoder.encode(strValue, false, false));

isScriptOrStyle()  returns true when start tag is SCRIPT and so unicode escaping is used.

Is there any way to use something like writer.write("some text", null, dontEscape) ?

> Javascript alert Should not display UnicodeEncoder dispose result
> -----------------------------------------------------------------
>          Key: MYFACES-218
>          URL:
>      Project: MyFaces
>         Type: Wish
>     Versions: 1.0.9 beta
>  Environment: Tomcat 5.5.7,myfaces 1.0.9 rc3
>     Reporter: wuhaixing

> When use core-jsf validator component(a client validator tag based on commons-validator),I
found output warn message is disposed by UnicodeEncoder,so,when validateForm occured,The prompt
message is not what I want,but as sequence &#2598 and so on.Could MyFaces provide a choice
for normal output as fmt:message or others jsp output?

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message