You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Yee-Wah Lee (JIRA)" <de...@myfaces.apache.org> on 2013/05/17 00:13:15 UTC
[jira] [Commented] (TRINIDAD-2386) Client dateTimeConverter overly
strict, restricts years to max 4 digits
[ https://issues.apache.org/jira/browse/TRINIDAD-2386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13660065#comment-13660065 ]
Yee-Wah Lee commented on TRINIDAD-2386:
---------------------------------------
The date converter's _subparse method calls _accumulateNumber with maxLength=4. This means that years are at most 4 digits long.
However, this is stricter than the server. Javascript accepts a wider range than 4 digit years, the range accepted is 6 digits long.
http://stackoverflow.com/questions/11526504/minimum-and-maximum-date
> Client dateTimeConverter overly strict, restricts years to max 4 digits
> -----------------------------------------------------------------------
>
> Key: TRINIDAD-2386
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2386
> Project: MyFaces Trinidad
> Issue Type: Bug
> Reporter: Yee-Wah Lee
> Priority: Minor
>
> 1. Go to http://example.irian.at/trinidad-demo/faces/convertValidate/clientConvert.jspx
> 2. In the date converter, enter a date with 5 digit years, e.g. 5/31/20139
> 3. Click Submit -> get error about the date being in the incorrect format
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira