[
https://issues.apache.org/jira/browse/TOBAGO-1750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16042809#comment-16042809
]
Hudson commented on TOBAGO-1750:
--------------------------------
SUCCESS: Integrated in Jenkins build Tobago Trunk #917 (See
[https://builds.apache.org/job/Tobago%20Trunk/917/])
TOBAGO-1750 - Problem with length in textarea (CRLF vs. LF) (lofwyr:
[http://svn.apache.org/viewvc/?view=rev&rev=1798069])
* (edit)
tobago-trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/config/TobagoConfig.java
* (edit)
tobago-trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUITextarea.java
* (edit)
tobago-trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/config/TobagoConfigFragment.java
* (edit)
tobago-trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/config/TobagoConfigImpl.java
* (edit)
tobago-trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/config/TobagoConfigParser.java
* (edit)
tobago-trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/config/TobagoConfigSorter.java
* (edit)
tobago-trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/DecodingInputRendererBase.java
* (edit)
tobago-trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/TextareaRenderer.java
* (edit)
tobago-trunk/tobago-core/src/main/resources/org/apache/myfaces/tobago/config/tobago-config-4.0.xsd
* (edit)
tobago-trunk/tobago-example/tobago-example-demo/src/main/webapp/WEB-INF/tobago-config.xml
> Problem with length validation in textarea (CRLF vs. LF)
> --------------------------------------------------------
>
> Key: TOBAGO-1750
> URL: https://issues.apache.org/jira/browse/TOBAGO-1750
> Project: MyFaces Tobago
> Issue Type: Bug
> Components: Core
> Reporter: Udo Schnurpfeil
> Assignee: Udo Schnurpfeil
> Fix For: 4.0.0
>
>
> There is a problem with the length of text with line breaks.
> The [HTML5|https://dev.w3.org/html5/spec-preview/the-textarea-element.html]
> 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 textarea.
> For compatibility reasons, this should be configurable in the
> tobago-config.xml:
> {code}
> <!-- true is the default -->
> <decode-line-feed>true</decode-line-feed>
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)