You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org> on 2007/06/20 14:16:26 UTC

[jira] Commented: (MYFACES-1666) HtmlResponseWriterImpl implements different encoding behaviour for the two writeText methods

    [ https://issues.apache.org/jira/browse/MYFACES-1666?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12506508 ] 

Matthias Weßendorf commented on MYFACES-1666:
---------------------------------------------

STRICT_SUCCESSIVE_SPACE_ENCODING

RI_MODE would sound to confusing, IMO

> HtmlResponseWriterImpl implements different encoding behaviour for the two writeText methods
> --------------------------------------------------------------------------------------------
>
>                 Key: MYFACES-1666
>                 URL: https://issues.apache.org/jira/browse/MYFACES-1666
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 1.1.5
>            Reporter: Manfred Geiler
>            Assignee: Manfred Geiler
>
> HtmlResponseWriterImpl implements different behaviour for the two writeText methods:
>  * writeText(Object value, String componentPropertyName) does not encode successive spaces and newlines
>  * writeText(char cbuf[], int off, int len) does encode successive spaces and newlines
> RI does not encode in both variants.
> IMO both methods SHOULD encode successive spaces and newlines to render the corresponding HTML syntax (&nbsp; and <br/>).
> Therefore we should (re)add this feature and make it switchable via a MyFaces Option "STRICT_RI_MODE" or something like that.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.