myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Udo Schnurpfeil (JIRA)" <>
Subject [jira] [Created] (TOBAGO-1750) Problem with length in textarea (CRLF vs. LF)
Date Thu, 08 Jun 2017 14:31:18 GMT
Udo Schnurpfeil created TOBAGO-1750:

             Summary: Problem with length in textarea (CRLF vs. LF)
                 Key: TOBAGO-1750
             Project: MyFaces Tobago
          Issue Type: Bug
          Components: Core
            Reporter: Udo Schnurpfeil
            Assignee: Udo Schnurpfeil

There is a problem with the length of text with line breaks.
The HTML5 spec. says, CRLF has to be treated as a single character in the browser.
Over HTTP/1.1 two characters must be transported.
When the string is validated in a JSF <f:validateLength> the String is N characters
longer than in the browser, when it contains N line breaks.

To "repair" this situation, Tobago should replace CRLF with LF in the submitted values of

For compatibility reasons, this should be configurable in the tobago-config.xml: 
<!-- true is the default -->

This message was sent by Atlassian JIRA

View raw message